# HG changeset patch # User Doug Simon # Date 1394269557 -3600 # Node ID 380984cdb29d048fc5c59c42363d2dfe99156c3d # Parent 2b2f0022900f7d11fd648636710efb2b9e9c3730 fixed incorrect test for null diff -r 2b2f0022900f -r 380984cdb29d graal/com.oracle.graal.options/src/com/oracle/graal/options/OptionProcessor.java --- a/graal/com.oracle.graal.options/src/com/oracle/graal/options/OptionProcessor.java Sat Mar 08 10:04:44 2014 +0100 +++ b/graal/com.oracle.graal.options/src/com/oracle/graal/options/OptionProcessor.java Sat Mar 08 10:05:57 2014 +0100 @@ -264,7 +264,7 @@ private static Element topDeclaringType(Element element) { Element enclosing = element.getEnclosingElement(); - if (element == null || enclosing.getKind() == ElementKind.PACKAGE) { + if (enclosing == null || enclosing.getKind() == ElementKind.PACKAGE) { assert element.getKind() == ElementKind.CLASS || element.getKind() == ElementKind.INTERFACE; return element; }