Skip to content

Commit a9e4e21

Browse files
committed
Add check for integers
1 parent 743aa49 commit a9e4e21

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Studies/src/org/labkey/studies/query/StudiesTriggerFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ private void possiblyResolveStudyOrCohort(String tableToQuery, @Nullable Map<Str
9393
return;
9494
}
9595

96+
if (row.get(sourceProperty) instanceof Integer)
97+
{
98+
return;
99+
}
100+
96101
if (row.get(sourceProperty) != null & row.get(sourceProperty) instanceof String & !String.valueOf(row.get(sourceProperty)).isEmpty())
97102
{
98103
if (!NumberUtils.isCreatable(row.get(sourceProperty).toString()))

0 commit comments

Comments
 (0)