diff --git a/src/main/java/it/cavallium/data/generator/SourcesGenerator.java b/src/main/java/it/cavallium/data/generator/SourcesGenerator.java index 7632169..ce30326 100644 --- a/src/main/java/it/cavallium/data/generator/SourcesGenerator.java +++ b/src/main/java/it/cavallium/data/generator/SourcesGenerator.java @@ -1478,6 +1478,9 @@ public class SourcesGenerator { String toTypeName = nextVersionFieldTypes.get(key); Family toFamily = typeFamily.get(toTypeName); TypeName toType = nextVersionTypeTypes.get(toTypeName); + Objects.requireNonNull(toType, + "Type " + toTypeName + " is unknown in version " + nextVersion.orElse(null) + ); TypeName toTypeBoxed = toType.isPrimitive() ? toType.box() : toType; { currentVarNumber.addTo(key, 1);