We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a19ec46 + 8811149 commit ce77b5cCopy full SHA for ce77b5c
profiler/profiler.nbimpl/src/org/netbeans/modules/profiler/nbimpl/providers/JavaProfilerSourceImpl.java
@@ -636,7 +636,7 @@ public void run(final CompilationController cc) throws Exception {
636
@Override
637
public Void visitMethod(MethodTree node, Void p) {
638
Element e = cc.getTrees().getElement(getCurrentPath());
639
- if (e.getKind() == ElementKind.METHOD) {
+ if (e != null && e.getKind() == ElementKind.METHOD) {
640
ExecutableElement ee = (ExecutableElement)e;
641
if (ee.getSimpleName().contentEquals("suite") && // NOI18N
642
(ee.getReturnType().toString().equals(JUNIT_TEST) ||
0 commit comments