Tumke commented on issue #1432:
URL: 
https://github.com/apache/cordova-android/issues/1432#issuecomment-1220838485

   It looks like that running a cordova app on 10.0.0 < without `<content 
src="inderx.html" />` was no problem, but now it is.
   
   here is my complete error log:
   
   2022-08-19 17:50:37.543 31994-31994/<appId> E/AndroidRuntime: FATAL 
EXCEPTION: main
       Process: <appId>, PID: 31994
       java.lang.RuntimeException: Unable to start activity 
ComponentInfo{<appId>/<appId>.<app_name>}: java.lang.NullPointerException: 
Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a 
null object reference
           at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3835)
           at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4011)
           at 
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
           at 
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
           at 
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
           at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2325)
           at android.os.Handler.dispatchMessage(Handler.java:106)
           at android.os.Looper.loop(Looper.java:246)
           at android.app.ActivityThread.main(ActivityThread.java:8633)
           at java.lang.reflect.Method.invoke(Native Method)
           at 
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
        Caused by: java.lang.NullPointerException: Attempt to invoke interface 
method 'int java.lang.CharSequence.length()' on a null object reference
           at java.util.regex.Matcher.reset(Matcher.java:256)
           at java.util.regex.Matcher.<init>(Matcher.java:167)
           at java.util.regex.Pattern.matcher(Pattern.java:1027)
           at 
org.apache.cordova.ConfigXmlParser.setStartUrl(ConfigXmlParser.java:173)
           at 
org.apache.cordova.ConfigXmlParser.getLaunchUrl(ConfigXmlParser.java:53)
           at 
org.apache.cordova.CordovaActivity.loadConfig(CordovaActivity.java:169)
           at 
org.apache.cordova.CordovaActivity.onCreate(CordovaActivity.java:107)
           at <appId>.<app_name>.onCreate(<app_name>_Plugins.java:30)
           at android.app.Activity.performCreate(Activity.java:8207)
           at android.app.Activity.performCreate(Activity.java:8191)
           at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
           at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3808)
           at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4011) 
           at 
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
 
           at 
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
 
           at 
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
 
           at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2325) 
           at android.os.Handler.dispatchMessage(Handler.java:106) 
           at android.os.Looper.loop(Looper.java:246) 
           at android.app.ActivityThread.main(ActivityThread.java:8633) 
           at java.lang.reflect.Method.invoke(Native Method) 
           at 
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
 
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130) 
   
   after checking 
"org.apache.cordova.ConfigXmlParser.getLaunchUrl(ConfigXmlParser.java:53)" on 
google i found this.
   
https://stackoverflow.com/questions/39931346/runtime-exception-when-running-cordova-app
   
   Then i discoverd there was no  `<content src="index.html" />` our app. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to