Skip to content

Commit

Permalink
Fixed a null pointer exception bug if merge was called without any se…
Browse files Browse the repository at this point in the history
…lection.
  • Loading branch information
fluffynukeit committed Oct 14, 2011
1 parent 2b3ee6c commit 7084c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/fluffynukeit/SpriteClipper/SpriteSheet.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void findClips(SpriteClipFinder clipFinder, BackgroundFilter filter) {

public void mergeClips(Collection<SpriteClip> mergeClips) {

if (mergeClips == null) {
if (mergeClips == null || mergeClips.size() == 0) {
return;
}

Expand Down

0 comments on commit 7084c42

Please sign in to comment.