Skip to content

Commit 39b933c

Browse files
committed
Merge pull request square#392 from square/dimitris/null-fix
If custom transformation fails, do not invoke stats.
2 parents e638abc + 64bfb08 commit 39b933c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

picasso/src/main/java/com/squareup/picasso/BitmapHunter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ Bitmap hunt() throws IOException {
139139
bitmap = applyCustomTransformations(data.transformations, bitmap);
140140
}
141141
}
142-
stats.dispatchBitmapTransformed(bitmap);
142+
if (bitmap != null) {
143+
stats.dispatchBitmapTransformed(bitmap);
144+
}
143145
}
144146
}
145147

0 commit comments

Comments
 (0)