Revision: 2434
http://sourceforge.net/p/swingme/code/2434
Author: yuranet
Date: 2021-04-20 13:39:50 +0000 (Tue, 20 Apr 2021)
Log Message:
-----------
throw better error
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 2021-04-02 22:35:56 UTC (rev 2433)
+++ AndroidME/src_MIDP/javax/microedition/midlet/MIDlet.java 2021-04-20 13:39:50 UTC (rev 2434)
@@ -118,6 +118,11 @@
platformLastUrl = url;
platformLastTime = now;
+ if (activity == null) {
+ // TODO this can happen if the app is shutting down
+ throw new IllegalStateException("main activity is null");
+ }
+
Class cls = Class.forName(content.getHost());
Intent i = new Intent(activity, cls);
i.setData(content);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|