diff --git a/main/src/com/google/refine/importing/ImportingUtilities.java b/main/src/com/google/refine/importing/ImportingUtilities.java index 922141c35..8e7438fe6 100644 --- a/main/src/com/google/refine/importing/ImportingUtilities.java +++ b/main/src/com/google/refine/importing/ImportingUtilities.java @@ -313,7 +313,7 @@ public class ImportingUtilities { } JSONUtilities.safePut(fileRecord, "declaredEncoding", encoding); String contentType = null; - if (entity.getContentType().getValue() != null) { + if (entity.getContentType() != null) { contentType = entity.getContentType().getValue(); } JSONUtilities.safePut(fileRecord, "declaredMimeType", contentType);