Skip to content

Commit 959890d

Browse files
committed
Bugfix to logic when boolean values are null for AnnotationModel
1 parent e9151dd commit 959890d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mGAP/src/org/labkey/mgap/jbrowse/AnnotationModel.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public void setHidden(Boolean hidden)
167167

168168
public boolean isIndexed()
169169
{
170-
return _isIndexed == null || _isIndexed;
170+
// Defaults to false when null
171+
return _isIndexed != null && _isIndexed;
171172
}
172173

173174
public void setIndexed(Boolean indexed)
@@ -187,7 +188,8 @@ public void setAllowableValues(String allowableValues)
187188

188189
public Boolean isInDefaultColumns()
189190
{
190-
return _inDefaultColumns;
191+
// Defaults to false when null
192+
return _inDefaultColumns != null && _inDefaultColumns;
191193
}
192194

193195
public void setInDefaultColumns(Boolean inDefaultColumns)

0 commit comments

Comments
 (0)