Make the null check exception a little bit more explicit

Currently it is "NullPointerException: someFieldName" and that is not very
telling as to the reasons this exception is thrown.
This commit is contained in:
Marcus Thiesen committed 2018-05-22 09:11:15 +02:00
1 parent 4fb9c6f7f8
commit 72f72395c7
1 file changed
+1 -1
@@ -35,7 +35,7 @@ public enum NullCheckExceptionType {
},
NULL_POINTER_EXCEPTION {
@Override public String toExceptionMessage(String fieldName) {
return fieldName;
return fieldName + " is marked as @NonNull but is null";
}
public String getExceptionType() {