code: protected String[] readLine(HSSFSheet sheet, int rowIndex) {
      HSSFRow row = sheet.getRow(rowIndex);
      logger.debug("values count:{}", row.getLastCellNum());
      List<String> attrList = CollectUtils.newArrayList();
      for (int i = 0; i < row.getLastCellNum(); i++) {
        HSSFCell cell = row.getCell(i);
        if (null != cell) {
          String attr = cell.getRichStringCellValue().getString();
          if (Strings.isEmpty(attr)) {
            break;
          } else {
            attrList.add(attr.trim());
          }
        } else {
          break;
        }
      }
      String[] attrs = new String[attrList.size()];
      attrList.toArray(attrs);
      logger.debug("has attrs {}", attrs);
      return attrs;
    }
docs: 遇到空白单元格停止的读行操作
  
  @param sheet a {@link org.apache.poi.hssf.usermodel.HSSFSheet} object.
  @param rowIndex a int.
  @return an array of {@link java.lang.String} objects.