Add support for null sourceContent entries
The spec says that these should be supported.  The specific context is for sourceContent entries corresponding to synthetic source files.
@@ -100,7 +100,8 @@ public class SourceMapObjectParser {
int len = array.size();
String[] result = new String[len];
for (int i = 0; i < len; i++) {
- result[i] = array.get(i).getAsString();
+ JsonElement item = array.get(i);
+ result[i] = item.isJsonNull() ? null : item.getAsString();
}
return result;
}
