Fwd: Android App Unable to Send SMS from Desktop - ADB Debug Error Code Included

Albert Vaca Cintora albertvaka at gmail.com
Thu Jul 8 15:07:07 BST 2021


Looks like a crash in phone number resolution? Not sure if it is fixed in
master already.

---------- Forwarded message ---------
From: Frank Peacock <fepeacock at gis4weather.com>
Date: Thu, 8 Jul 2021, 14:48
Subject: Android App Unable to Send SMS from Desktop - ADB Debug Error Code
Included
To: <kdeconnect-owner at kde.org>


Hello,

I have recently started using kdeconnect on my Linux Mint 19.3 desktop
together with an Android app (v 1.17.0).

All works great using various indicator software (not the latest). The one
functionality that fails is sending SMS's from the desktop.

I have using adb to debug the kdeconnect messages on my phone, when I try
to send an SMS from the desktop, and the error below my email appears. The
error also occurs on older Android app versions too.

I have followed the lines indicated in the error message below in the
Android app source code and I think I am having the problem because of my
SIM card having an unknown number. The reason I cannot set the phone number
is that the SIM does not allow storing it and the carrier stores my line
number on their central system rather.

Is it possible for your coders of the Android app to catch this fault and
still allow sending of the SMS without a valid "
LocalPhoneNumber.number" variable value?

Many thanks,

Frank Peacock

ADB Debug Error on KDEConnect App v 1.17.0 when sending SMS from desktop:

07-08 17:44:21.672  9215 20050 E Sending message: Exception
07-08 17:44:21.672  9215 20050 E Sending message:
java.lang.NullPointerException: Attempt to read from field
'java.lang.String
org.kde.kdeconnect.Helpers.TelephonyHelper$LocalPhoneNumber.number' on a
null object reference
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Plugins.SMSPlugin.SmsMmsUtils.sendMessage(SmsMmsUtils.java:158)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Plugins.SMSPlugin.SMSPlugin.onPacketReceived(SMSPlugin.java:413)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Device.onPacketReceived(Device.java:570)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Backends.BaseLink.packageReceived(BaseLink.java:70)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:249)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0(LanLink.java:97)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0$LanLink(Unknown
Source:0)
07-08 17:44:21.672  9215 20050 E Sending message:     at
org.kde.kdeconnect.Backends.LanBackend.-$$Lambda$LanLink$u8LWlVA_uGoxlkxdXMbWulE13kY.run(Unknown
Source:4)
07-08 17:44:21.672  9215 20050 E Sending message:     at
java.lang.Thread.run(Thread.java:784)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20210708/ff0bca7f/attachment.htm>


More information about the KDEConnect mailing list