Skip to content

Commit 362414b

Browse files
author
Suchita Chaturvedi
committed
7329: Exception while opening Method Profile page.
Reviewed-by: hirt
1 parent 11e547a commit 362414b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/org.openjdk.jmc.flightrecorder.ui/src/main/java/org/openjdk/jmc/flightrecorder/ui/pages/internal/MethodWithFrameTypeLabelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public Image getImage(Object key) {
106106
} else if (key instanceof IMCFrame) {
107107
method = ((IMCFrame) key).getMethod();
108108
}
109-
if (method != null) {
109+
if ((method != null) && (method.getModifier() != null)) {
110110
if ((method.getModifier() & Modifier.PUBLIC) != 0) {
111111
return mwft.getFrameType() != Type.INTERPRETED ? publicJitMethodImage : publicMethodImage;
112112
} else if ((method.getModifier() & Modifier.PROTECTED) != 0) {

0 commit comments

Comments
 (0)