Skip to content

Commit

Permalink
Added check for a null header.
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerinet committed Jul 13, 2017
1 parent 806ffcb commit 7345cc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/guerinet/stringparser/StringParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ private static List<BaseString> downloadStrings(String urlName, String url,
for (int i = 0; i < header.length; i ++) {
String string = header[i];

if (string == null) {
// Disregard null headers
continue;
}

// Check if the String matches the key key
if (string.equalsIgnoreCase(KEY)) {
keyColumn = i;
Expand Down

0 comments on commit 7345cc1

Please sign in to comment.