android活动运行时空指针异常

时间:2013-01-04 15:12:13

标签: android nullpointerexception android-activity

我收到这个运行时异常,这对我来说真的很奇怪,因为它抛出一个空指针异常。我正在使用android 4.0.4在galaxy选项卡7.0上调试我的应用程序以下是调试器中的代码和堆栈。有人可以告诉我这里发生什么事吗?

Intent cd = new Intent(classA.this, classB.class);
                    startActivity(cd);



Thread [<1> main] (Suspended (exception RuntimeException))  
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1973    
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1999 
ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 127    
ActivityThread$H.handleMessage(Message) line: 1159  
ActivityThread$H(Handler).dispatchMessage(Message) line: 99 
Looper.loop() line: 137 
ActivityThread.main(String[]) line: 4513    
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]  
Method.invoke(Object, Object...) line: 511  
ZygoteInit$MethodAndArgsCaller.run() line: 974  
ZygoteInit.main(String[]) line: 741 
NativeStart.main(String[]) line: not available [native method]  

0 个答案:

没有答案