Skip to content

Commit 4ec23b0

Browse files
committed
PicassoExtensions: Fix nullable value TypeCastException
Signed-off-by: Fung <fython@163.com>
1 parent 26a346b commit 4ec23b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinyan-picasso-support/src/main/kotlin/moe/feng/kotlinyan/common/PicassoExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface PicassoExtensions {
3131
}
3232

3333
var ImageView.picassoCallback : Callback?
34-
get() { return this.getTag(R.id.tag_picasso_callback) as Callback }
34+
get() { return this.getTag(R.id.tag_picasso_callback) as? Callback }
3535
set(value) { this.setTag(R.id.tag_picasso_callback, value) }
3636

3737
var ImageView.loadUrl : String

0 commit comments

Comments
 (0)