Skip to content

Commit 6eb8608

Browse files
committed
Fixed potential NPE in WebClassesFinder
1 parent 8c1d707 commit 6eb8608

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎core/src/main/java/com/ocpsoft/pretty/faces/config/annotation/WebClassesFinder.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ protected void processDirectory(URL classesFolderUrl, URL directoryUrl, PrettyAn
122122
// get full URL for this entry
123123
URL entryUrl = servletContext.getResource(relativePath.toString());
124124

125+
// Seems to happen in some weird situations
126+
if (entryUrl == null) {
127+
continue;
128+
}
129+
125130
// if this URL ends with .class it is a Java class
126131
if (entryUrl.getPath().endsWith(".class"))
127132
{

0 commit comments

Comments
 (0)