Null check in DTCE
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-06-27 16:24:40 +02:00
parent d417d1e581
commit 487f063cb0
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ public class DynamicTypeConversionException extends RuntimeException {
private final String actual;
public DynamicTypeConversionException(String target, Dynamic<?> dynamic) {
super(MESSAGE1 + dynamic.getClass().getSimpleName() + MESSAGE2 + target);
super(MESSAGE1 + (dynamic == null ? "null" : dynamic.getClass().getSimpleName()) + MESSAGE2 + target);
this.target = target;
this.actual = dynamic.getClass().getSimpleName();
this.actual = dynamic == null ? "null" : dynamic.getClass().getSimpleName();
}
public LocationalException locational(CodeLocation location) {