Skip to content

Commit 82607cb

Browse files
(Integer)
1 parent faaf915 commit 82607cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/org/labkey/targetedms/SkylineDocImporter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
import java.util.TreeSet;
103103
import java.util.concurrent.locks.ReentrantLock;
104104

105+
import static org.labkey.api.exp.api.ExperimentService.asInteger;
105106
import static org.labkey.targetedms.TargetedMSManager.getTableInfoTransitionChromInfo;
106107

107108
/**
@@ -1090,7 +1091,7 @@ else if (SkylineFileUtils.EXT_SKY_LOG.equalsIgnoreCase(ext))
10901091
Map<String, Object> iRTScaleRow = new CaseInsensitiveHashMap<>();
10911092
iRTScaleRow.put("container", _container);
10921093
Map<String, Object> iRTScaleResult = Table.insert(_user, TargetedMSManager.getTableInfoiRTScale(), iRTScaleRow);
1093-
iRTScaleId = (int) iRTScaleResult.get("id");
1094+
iRTScaleId = asInteger(iRTScaleResult.get("id"));
10941095
}
10951096

10961097
// insert any new iRT Peptides into the database

0 commit comments

Comments
 (0)