| 刚接触J2ME碰到的几个异常 |
| [ 来源:ITWENKU 时间:2007-3-24 10:30:01 | 浏览:229人次
] |
| |
|
正在通过存储根 DefaultGrayPhone 来运行 java.lang.NullPointerException at com.sun.java.uiDemo.formWel.<init>(+19) at java.lang.Class.runCustomCode(+0) at com.sun.midp.midlet.MIDletState.createMIDlet(+19) at com.sun.midp.midlet.Scheduler.schedule(+52) at com.sun.midp.main.Main.runLocalClass(+28) at com.sun.midp.main.Main.main(+116) Execution completed. 704057 bytecodes executed 2 thread switches 740 classes in the system (including system classes) 3675 dynamic objects allocated (100720 bytes) 2 garbage collections (86304 bytes collected) 然后模拟器就退出!!!!
空指针错误 变量没有初始化就引用了吧
空指针错误 对象为null MIDlet产生时就报错`` 是不是窗体没new 就引用了啊`
NullPointerException
仔细检查下你的使用的变量 有没有没初始化的
|
|
 |
推荐文章 |
|