Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Oct 7, 2024
1 parent 51ced33 commit 15e8c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/broad/igv/track/AbstractTrack.java
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ public String getTooltipText(int y) {
buffer.append("<html>" + getName());

Map<String, String> metadata = resourceLocator.getMetadata();
if(metadata.size() > 0) {
if(metadata != null && metadata.size() > 0) {
for(Map.Entry<String, String> entry : metadata.entrySet()) {
String value = entry.getValue();
if(value != null && value.length() > 0) {
Expand Down

0 comments on commit 15e8c2a

Please sign in to comment.