diff --git a/genotyping/src/org/labkey/genotyping/GenotypingManager.java b/genotyping/src/org/labkey/genotyping/GenotypingManager.java index 4e835c93..e044c048 100644 --- a/genotyping/src/org/labkey/genotyping/GenotypingManager.java +++ b/genotyping/src/org/labkey/genotyping/GenotypingManager.java @@ -49,6 +49,8 @@ import java.util.Map; import java.util.Properties; +import static org.labkey.api.exp.api.ExperimentService.asInteger; + public class GenotypingManager { private static final GenotypingManager _instance = new GenotypingManager(); @@ -405,7 +407,7 @@ public int insertMatch(User user, GenotypingAnalysis analysis, int sampleId, Res Map matchOut = Table.insert(user, gs.getMatchesTable(), row); - int matchId = (Integer)matchOut.get("RowId"); + int matchId = asInteger(matchOut.get("RowId")); // Insert all the alleles in this group into AllelesJunction table if (alleleIds.length > 0)