Revision: 2328
http://sourceforge.net/p/swingme/code/2328
Author: yuranet
Date: 2014-12-11 11:25:07 +0000 (Thu, 11 Dec 2014)
Log Message:
-----------
arg check for notification method
Modified Paths:
--------------
AndroidME/src_MIDP/javax/microedition/midlet/MIDlet.java
Modified: AndroidME/src_MIDP/javax/microedition/midlet/MIDlet.java
===================================================================
--- AndroidME/src_MIDP/javax/microedition/midlet/MIDlet.java 2014-12-10 23:16:40 UTC (rev 2327)
+++ AndroidME/src_MIDP/javax/microedition/midlet/MIDlet.java 2014-12-11 11:25:07 UTC (rev 2328)
@@ -274,6 +274,10 @@
AndroidMeActivity.DEFAULT_ACTIVITY==null ||
!((AndroidMeActivity)AndroidMeActivity.DEFAULT_ACTIVITY).isForeground() ) {
+ if (icon == null) {
+ throw new IllegalArgumentException("icon is null");
+ }
+
Context ctx = AndroidMeApp.getContext();
int iconId = ctx.getResources().getIdentifier(icon, "drawable", ctx.getPackageName());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|