From 76a291ab41921dc955a0519083a6e25f85feced3 Mon Sep 17 00:00:00 2001 From: Till Schnell Date: Sat, 1 May 2021 14:38:44 +0200 Subject: [PATCH] Fixed a Bug for a null Pointer Exception --- src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java index af0d747e..1066e047 100644 --- a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java +++ b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java @@ -615,7 +615,7 @@ public class JavaTXCompiler { }); Set constructorParaTypeVarNames = allClasses.stream().map(x -> x.getConstructors().stream() - .map(y -> y.getParameterList().getFormalparalist().stream() + .filter(y -> y != null).map(y -> y.getParameterList().getFormalparalist().stream() .filter(z -> z.getType() instanceof TypePlaceholder) .map(z -> ((TypePlaceholder) z.getType()).getName()) .collect(Collectors.toCollection(HashSet::new)))