Skip to content

Handle null values in DbQueryOutputField.getType #64

@chriskormaris

Description

@chriskormaris

DbFieldType type = DbFieldType.fromClass(result.get(this).getClass()).getConstructor().newInstance();

Please add NullPointerException in the catch clause as follows:

try {
DbFieldType type = DbFieldType.fromClass(result.get(this).getClass()).getConstructor().newInstance();
return type.toString();
} catch (UnsupportedFieldTypeException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException | NullPointerException e) {
return "-";
}

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