Skip to content

Commit

Permalink
Fix uninitialized map in MediaType.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Aug 14, 2019
1 parent b6ca5ec commit ffc30c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/io/sinistral/proteus/server/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -1277,12 +1277,12 @@ public String toString()

public String getFileExtension()
{
return Optional.ofNullable(EXTENSION_MAP.get(this)).map( fe -> fe.get(0)).orElse(null);
return Optional.ofNullable(getFileExtensionMap().get(this)).map( fe -> fe.get(0)).orElse(null);
}

public List<String> getFileExtensions()
{
return Optional.ofNullable(EXTENSION_MAP.get(this)).orElse(null);
return Optional.ofNullable(getFileExtensionMap().get(this)).orElse(null);
}

public String subType()
Expand Down

0 comments on commit ffc30c2

Please sign in to comment.