Skip to content

Commit

Permalink
If space setting is disabled will throw an NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettryan committed Mar 16, 2016
1 parent 0ab2f3c commit 250884d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<groupId>com.drunkendev.confluence.plugins</groupId>
<artifactId>attachment-tools-plugin</artifactId>
<name>Attachment Tools Plugin</name>
<version>1.2.0-5.9-alpha-1</version>
<version>1.2.0-5.9-alpha-2</version>

<properties>
<confluence.version>5.9.6</confluence.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ private Map<String, PurgeAttachmentSettings> getAllSpaceSettings(PurgeAttachment
return spaceManager.getAllSpaceKeys(SpaceStatus.CURRENT).stream()
.filter(k -> k != null)
.map(k -> new ImmutablePair<>(k, getSettings(k, defaultSetting)))
.filter(n -> n.right != null)
.collect(toMap(k -> k.left, k -> k.right));
}

Expand Down

0 comments on commit 250884d

Please sign in to comment.