X-Git-Url: http://git.joshuawise.com/dumload.git/blobdiff_plain/0763e16da0e84b68e675fbf61342dd1e47755f47..6118555b337b494b3de3d2f022f5c46ec37825be:/src/com/joshuawise/dumload/NotifSlave.java?ds=sidebyside diff --git a/src/com/joshuawise/dumload/NotifSlave.java b/src/com/joshuawise/dumload/NotifSlave.java index 21af25e..40db024 100644 --- a/src/com/joshuawise/dumload/NotifSlave.java +++ b/src/com/joshuawise/dumload/NotifSlave.java @@ -62,7 +62,12 @@ public class NotifSlave extends Activity { final Messenger m = (Messenger)i.getParcelableExtra("com.joshuawise.dumload.returnmessenger"); String reqtype = i.getStringExtra("com.joshuawise.dumload.reqtype"); String prompt = i.getStringExtra("com.joshuawise.dumload.prompt"); - /* If any of these were null, we'll just take the exception. */ + + if (prompt == null || reqtype == null || m == null) /* i.e., we got called by a dummy notification */ + { + this.finish(); + return; + } if (reqtype.equals("yesno")) { AlertDialog.Builder builder = new AlertDialog.Builder(this);