diff --git a/json/src/main/java/com/esri/json/hadoop/EnclosedJsonRecordReader.java b/json/src/main/java/com/esri/json/hadoop/EnclosedJsonRecordReader.java index 6ad8f88..c9466ac 100644 --- a/json/src/main/java/com/esri/json/hadoop/EnclosedJsonRecordReader.java +++ b/json/src/main/java/com/esri/json/hadoop/EnclosedJsonRecordReader.java @@ -77,7 +77,8 @@ public boolean next(LongWritable key, Text value) throws IOException { token = parser.nextToken(); - while (token != null && !(token == JsonToken.START_ARRAY && parser.getCurrentName() == "features")){ + while (token != null && !(token == JsonToken.START_ARRAY && + parser.getCurrentName() != null && parser.getCurrentName().equals("features"))) { token = parser.nextToken(); }