Skip to content

Commit 3322237

Browse files
committed
Fix NPE
1 parent c7d10b7 commit 3322237

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

api/src/org/labkey/api/audit/AuditHandler.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,12 @@ else if (isExtraAuditField)
188188
{
189189
// Issue 53825: LKSM/LKB: Sample Timeline entries for lineage updates with domains containing & or . may be incorrect
190190
String[] parts = fieldName.split("/", 2);
191-
String prefix = parts[0];
192-
String dataType = parts[1];
193-
existingEncodedInputColumns.add(prefix + "/" + QueryKey.encodePart(dataType));
191+
if (parts.length == 2)
192+
{
193+
String prefix = parts[0];
194+
String dataType = parts[1];
195+
existingEncodedInputColumns.add(prefix + "/" + QueryKey.encodePart(dataType));
196+
}
194197
}
195198
}
196199
row.forEach((fieldName, value) -> {

0 commit comments

Comments
 (0)