Skip to content

Commit 580216a

Browse files
small fix
1 parent a130620 commit 580216a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.frictionlessdata</groupId>
66
<artifactId>datapackage-java</artifactId>
7-
<version>0.9.0-SNAPSHOT</version>
7+
<version>0.9.1-SNAPSHOT</version>
88
<packaging>jar</packaging>
99
<issueManagement>
1010
<url>https://github.com/frictionlessdata/datapackage-java/issues</url>

src/main/java/io/frictionlessdata/datapackage/resource/Resource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private static AbstractResource buildJsonResource(Object data, String name, Stri
397397
if ((data instanceof ArrayNode)) {
398398
resource = new JSONDataResource(name, (ArrayNode)data);
399399
} else {
400-
if (profile.equalsIgnoreCase(Profile.PROFILE_TABULAR_DATA_RESOURCE) && (StringUtils.isEmpty(format))) {
400+
if ((null != profile) && profile.equalsIgnoreCase(Profile.PROFILE_TABULAR_DATA_RESOURCE) && (StringUtils.isEmpty(format))) {
401401
// from the spec: " a JSON string - in this case the format or
402402
// mediatype properties MUST be provided
403403
// https://specs.frictionlessdata.io/data-resource/#data-inline-data

0 commit comments

Comments
 (0)