Skip to content

Commit bcb7f98

Browse files
committed
Fix NPE when validating rule class type
1 parent 695a42f commit bcb7f98

File tree

1 file changed

+1
-1
lines changed
  • net.sourceforge.pmd.eclipse.plugin/src/main/java/net/sourceforge/pmd/eclipse/ui/preferences/panelmanagers

1 file changed

+1
-1
lines changed

net.sourceforge.pmd.eclipse.plugin/src/main/java/net/sourceforge/pmd/eclipse/ui/preferences/panelmanagers/RulePanelManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ private boolean hasValidRuleType() {
642642
} catch (ClassNotFoundException e) {
643643
PMDPlugin.getDefault().logError("Couldn't find rule impl class " + newType, e);
644644
}
645-
return newType != null && Rule.class.isAssignableFrom(newTypeClass);
645+
return newTypeClass != null && Rule.class.isAssignableFrom(newTypeClass);
646646
}
647647

648648
private String nameFieldValue() {

0 commit comments

Comments
 (0)