Nullpointer Exception solo.sendKey(Solo.Enter)

54 views
Skip to first unread message

nanapa

unread,
Sep 16, 2011, 8:16:03 AM9/16/11
to Robotium Developers
Hi,

when I call solo.sendKey(Solo.ENTER) in my
ActivityInstrumentationTestCase2
a NullPointerException will be thrown:

java.lang.NullPointerException
at android.os.Parcel.readException(Parcel.java:1266)
at android.os.Parcel.readException(Parcel.java:1248)
at android.view.IWindowManager$Stub
$Proxy.injectKeyEvent(IWindowManager.java:830)
at android.app.Instrumentation.sendKeySync(Instrumentation.java:859)
at android.app.Instrumentation.sendCharacterSync(Instrumentation.java:
885)
at
com.jayway.android.robotium.solo.RobotiumUtils.sendKeyCode(RobotiumUtils.java:
54)
at com.jayway.android.robotium.solo.Solo.sendKey(Solo.java:1841)

Robotoum-solo-2.5.jar
Android 2.2.
Phone Samsung Galaxy I9000

Regards
Ingo


Renas

unread,
Sep 16, 2011, 8:33:19 AM9/16/11
to robotium-...@googlegroups.com
Thanks for reporting this. Have you tried to run it on the emulator?

/Renas



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


nanapa

unread,
Sep 16, 2011, 9:25:20 AM9/16/11
to Robotium Developers
On the emulator it works fine.
Reply all
Reply to author
Forward
0 new messages