|
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 "-";
}
snap-admin/src/main/java/tech/ailef/snapadmin/external/dbmapping/query/DbQueryOutputField.java
Line 125 in e9c5e52
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 "-";
}