File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
dts-generator/src/main/java/com/telerik/dts Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,13 @@ private List<JavaClass> getInterfaces(JavaClass classInterface) {
393
393
String [] interfaceNames = classInterface .getInterfaceNames ();
394
394
for (String intface : interfaceNames ) {
395
395
JavaClass clazz1 = ClassRepo .findClass (intface );
396
+
397
+ // Added guard to prevent NullPointerExceptions in case libs are not provided - the dev can choose to include it and rerun the generator
398
+ if (clazz1 == null ) {
399
+ System .out .println ("ignoring definitions in missing dependency: " + intface );
400
+ continue ;
401
+ }
402
+
396
403
String className = clazz1 .getClassName ();
397
404
398
405
// TODO: Pete: Hardcoded until we figure out how to go around the 'type incompatible with Object' issue
You can’t perform that action at this time.
0 commit comments