Skip to content

Commit 92fbc75

Browse files
committed
text can be null
1 parent 52a0f9a commit 92fbc75

File tree

1 file changed

+1
-0
lines changed
  • visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/utils

1 file changed

+1
-0
lines changed

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/utils/HeapUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public static Instance instanceFromHtml(String html, Heap heap) {
132132

133133

134134
public static String htmlize(String text) {
135+
if (text == null) return null;
135136
return text.replace(">", "&gt;").replace("<", "&lt;"); // NOI18N
136137
}
137138

0 commit comments

Comments
 (0)