Skip to content
Browse files

The URL of the image should not be null

  • Loading branch information...
1 parent 6afa0d6 commit 83071b5007e6f084ec238d8c006aa93c564883ed @skarcha committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/com/skarcha/nobrowser/NBImageView.java
View
6 src/com/skarcha/nobrowser/NBImageView.java
@@ -44,7 +44,11 @@ public void onCreate(Bundle savedInstanceState) {
finish();
}
- new getImageTask().execute(dataString);
+ if (dataString == null) {
+ finish();
+ } else {
+ new getImageTask().execute(dataString);
+ }
}
private void showImage (Drawable drawable) {

0 comments on commit 83071b5

Please sign in to comment.
Something went wrong with that request. Please try again.