Skip to content

Commit 5b48f1e

Browse files
authored
Fix int -> long issue in genotyping (#174)
1 parent 8d7c9f2 commit 5b48f1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

genotyping/src/org/labkey/genotyping/GenotypingManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
import java.util.Map;
5050
import java.util.Properties;
5151

52+
import static org.labkey.api.exp.api.ExperimentService.asInteger;
53+
5254
public class GenotypingManager
5355
{
5456
private static final GenotypingManager _instance = new GenotypingManager();
@@ -405,7 +407,7 @@ public int insertMatch(User user, GenotypingAnalysis analysis, int sampleId, Res
405407

406408
Map<String, Object> matchOut = Table.insert(user, gs.getMatchesTable(), row);
407409

408-
int matchId = (Integer)matchOut.get("RowId");
410+
int matchId = asInteger(matchOut.get("RowId"));
409411

410412
// Insert all the alleles in this group into AllelesJunction table
411413
if (alleleIds.length > 0)

0 commit comments

Comments
 (0)