sassernetsky / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

getWindowDecorViews null pointer exception #625

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
ArrayList views=solo.getCurrentViews(Button.class);

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
5.2.1

Please provide any additional information below.

W/System.err( 1934): java.lang.NullPointerException: expected receiver of type 
android.view.WindowManagerGlobal, but got null
W/System.err( 1934):    at java.lang.reflect.Field.getField(Native Method)
W/System.err( 1934):    at java.lang.reflect.Field.get(Field.java:266)
W/System.err( 1934):    at 
com.robotium.solo.ViewFetcher.getWindowDecorViews(ViewFetcher.java:506)
W/System.err( 1934):    at 
com.robotium.solo.ViewFetcher.getAllViews(ViewFetcher.java:83)
W/System.err( 1934):    at 
com.robotium.solo.ViewFetcher.getViews(ViewFetcher.java:204)
W/System.err( 1934):    at 
com.robotium.solo.ViewFetcher.getCurrentViews(ViewFetcher.java:325)
W/System.err( 1934):    at 
com.robotium.solo.ViewFetcher.getCurrentViews(ViewFetcher.java:311)
W/System.err( 1934):    at com.robotium.solo.Solo.getCurrentViews(Solo.java:2140)
W/System.err( 1934):    at 
com.intel.ami.guiinjector.Injector.testDisplayBlackBox(Injector.java:51)
W/System.err( 1934):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 1934):    at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err( 1934):    at 
android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)
W/System.err( 1934):    at 
android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)
W/System.err( 1934):    at 
android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTes
tCase2.java:192)
W/System.err( 1934):    at junit.framework.TestCase.runBare(TestCase.java:134)
W/System.err( 1934):    at 
junit.framework.TestResult$1.protect(TestResult.java:115)
W/System.err( 1934):    at 
junit.framework.TestResult.runProtected(TestResult.java:133)
W/System.err( 1934):    at junit.framework.TestResult.run(TestResult.java:118)
W/System.err( 1934):    at junit.framework.TestCase.run(TestCase.java:124)
W/System.err( 1934):    at 
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
W/System.err( 1934):    at 
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
W/System.err( 1934):    at 
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:55
4)
W/System.err( 1934):    at 
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)

Original issue reported on code.google.com by edwardg...@gmail.com on 22 Jul 2014 at 6:10

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. What version of Android are you using?

Original comment by renasr...@gmail.com on 24 Jul 2014 at 10:51

GoogleCodeExporter commented 9 years ago
This is not reproducible by us. 

Original comment by renasr...@gmail.com on 14 Aug 2014 at 11:55