Skip to content

Commit

Permalink
Bugfix to JBrowseFieldUtils caching
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 14, 2024
1 parent eea1958 commit 19d6779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jbrowse/src/org/labkey/jbrowse/JBrowseFieldUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static Map<String, JBrowseFieldDescriptor> getIndexedFields(JsonFile json
}

public static Map<String, JBrowseFieldDescriptor> getGenotypeDependentFields(@Nullable JsonFile jsonFile) {
String key = "genotypeFields." + jsonFile.getObjectId();
String key = "genotypeFields." + (jsonFile == null ? "default" : jsonFile.getObjectId());
if (_cache.get(key) == null)
{
Map<String, JBrowseFieldDescriptor> ret = new HashMap<>();
Expand Down

0 comments on commit 19d6779

Please sign in to comment.