VanceVagell / kv4p-ht

Open source handheld ham radio project KV4P-HT
GNU General Public License v3.0
316 stars 35 forks source link

[Android] Fix APRS string formatting exception discovered in the wild #69

Open VanceVagell opened 3 weeks ago

VanceVagell commented 3 weeks ago

Exception java.lang.IllegalStateException: Could not execute method for android:onClick at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:473) at android.view.View.performClick (View.java:7931) at android.view.View.performClickInternal (View.java:7908) at android.view.View.-$$Nest$mperformClickInternal at android.view.View$PerformClick.run (View.java:30990) at android.os.Handler.handleCallback (Handler.java:959) at android.os.Handler.dispatchMessage (Handler.java:100) at android.os.Looper.loopOnce (Looper.java:232) at android.os.Looper.loop (Looper.java:317) at android.app.ActivityThread.main (ActivityThread.java:8592) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:878) Caused by java.lang.reflect.InvocationTargetException: at java.lang.reflect.Method.invoke at androidx.appcompat.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:468) Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toUpperCase()' on a null object reference at com.vagell.kv4pht.aprs.parser.APRSPacket. (APRSPacket.java:49) at com.vagell.kv4pht.radio.RadioAudioService.sendChatMessage (RadioAudioService.java:1118) at com.vagell.kv4pht.ui.MainActivity.sendTextClicked (MainActivity.java:529)