Skip to content

Commit 8350aef

Browse files
Make classWithNameNullIfNotFound() actually return null if not found
1 parent 66c9ebe commit 8350aef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ng-appserver/src/main/java/ng/appserver/templating/NGElementManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ public Class classWithNameNullIfNotFound( String classNameToSearchFor ) {
225225
catch( ClassNotFoundException e ) {}
226226
}
227227

228-
throw new RuntimeException( "Class not found: " + classNameToSearchFor );
228+
return null;
229+
// throw new RuntimeException( "Class not found: " + classNameToSearchFor );
229230
}
230231

231232
/**

0 commit comments

Comments
 (0)