Hello

I got a NullPointerException in SmsManager.java while trying to send
an sms. CallStack:

02-15 07:55:22.646 E/smsETH  (32500): Error while sending message
02-15 07:55:22.646 E/smsETH  (32500): java.lang.NullPointerException
02-15 07:55:22.646 E/smsETH  (32500): at
android.telephony.gsm.SmsManager.sendTextMessage(SmsManager.java:131)
02-15 07:55:22.646 E/smsETH  (32500): at
android.telephony.gsm.SmsManager.sendTextMessage(SmsManager.java:74)
02-15 07:55:22.646 E/smsETH  (32500): at
ch.ethz.smseth.PhoneSender.send(PhoneSender.java:34)
02-15 07:55:22.646 E/smsETH  (32500): at
ch.ethz.smseth.service.SenderService$Sender.run(SenderService.java:
116)
02-15 07:55:22.646 E/smsETH  (32500): at
java.lang.Thread.run(Thread.java:1058)

The exception occured on HTC Hero running Android 1.5 (Cupcake). The
method is invoked as follows:

SmsManager manager = SmsManager.getDefault();
manager.sendTextMessage(destination, null, message, pending, null);

where destination, message and pending is not null.

Normally, the method just works. So I tried to reproduce the error but
it wasn't possible. I had a look at the source code of SmsManager.java
(http://android.git.kernel.org/?p=platform/frameworks/
base.git;a=blob;f=telephony/java/android/telephony/gsm/
SmsManager.java;h=c63b5303309bd1f8adb62ddeb03fbb5187dac089;hb=cupcake-
release) but it seems the line numbering is not the same.

Any ideas? Another hint is that it happened in a car while driving at
120 km/h, maybe the connection wasn't very stable.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to