You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android Galaxy Note10+ not receiving MMS due to 'intent.getStringExtra("file_path")' always being null in the MmsReceivedReceiver class. After the phone receives the MMS message, the broadcast receiver's "onReceive" method is called, however the 'path' variable is always null.
2020-04-21 09:11:54.775 4864-4864/com.example.messageforwarder E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.messageforwarder, PID: 4864
java.lang.RuntimeException: Unable to start receiver com.example.messageforwarder.TestReceiver: java.lang.NullPointerException: println needs a message
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4120)
at android.app.ActivityThread.access$1700(ActivityThread.java:272)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8016)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
Caused by: java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.v(Log.java:136) at com.klinker.android.send_message.MmsReceivedReceiver.onReceive(MmsReceivedReceiver.java:93)
public final void onReceive(final Context context, final Intent intent) {
Log.v("MmsReceivedReceiver", "MMS has finished downloading, persisting it to the database");
final String path = intent.getStringExtra("file_path");
final int subscriptionId = intent.getIntExtra("subscription_id", Utils.getDefaultSubscriptionId()); Log.v("MmsReceivedReceiver", path);
--> app crashes, because 'path' is always null
The text was updated successfully, but these errors were encountered:
Android Galaxy Note10+ not receiving MMS due to 'intent.getStringExtra("file_path")' always being null in the MmsReceivedReceiver class. After the phone receives the MMS message, the broadcast receiver's "onReceive" method is called, however the 'path' variable is always null.
2020-04-21 09:11:54.775 4864-4864/com.example.messageforwarder E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.messageforwarder, PID: 4864
java.lang.RuntimeException: Unable to start receiver com.example.messageforwarder.TestReceiver: java.lang.NullPointerException: println needs a message
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4120)
at android.app.ActivityThread.access$1700(ActivityThread.java:272)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:8016)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
Caused by: java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.v(Log.java:136)
at com.klinker.android.send_message.MmsReceivedReceiver.onReceive(MmsReceivedReceiver.java:93)
public final void onReceive(final Context context, final Intent intent) {
Log.v("MmsReceivedReceiver", "MMS has finished downloading, persisting it to the database");
final String path = intent.getStringExtra("file_path");
final int subscriptionId = intent.getIntExtra("subscription_id", Utils.getDefaultSubscriptionId());
Log.v("MmsReceivedReceiver", path);
--> app crashes, because 'path' is always null
The text was updated successfully, but these errors were encountered: