Skip to content

ExcelCellsJoinedByName Null Pointer #345

@Chelayel

Description

@Chelayel

In the PoijiHandler, if the header is null, but the row below the header contains a value, the indexToTitle.get(column) will throw a null pointer exception, which happened in a scenario of mine.

ExcelCellsJoinedByName excelCellsJoinedByName = field.getAnnotation(ExcelCellsJoinedByName.class); if (excelCellsJoinedByName != null) { String titleColumn = indexToTitle.get(column).replaceAll("@[0-9]+", "");

I beleive we should add a null check on indexToTitle.get(column), before calling .replaceAll

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions