[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -51,7 +51,7 @@ public class MessageUtil {
|
||||
public LocationMessage fromJson(String json) {
|
||||
for (String pattern : PATTERNS) {
|
||||
Class<? extends LocationMessage> c = MESSAGE_TYPES.get(pattern);
|
||||
if (json.matches(pattern)) {
|
||||
if (c != null && json.matches(pattern)) {
|
||||
return gson.fromJson(json, c);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user