作者PttHuge (我要看Naruto >_<)
站内java
标题Re: [J2SE] 请问这段错误讯息的意思 Except in tre …
时间Thu Mar 16 14:49:07 2006
※ 引述《zanyking (遥远的旅人)》之铭言:
: ※ 引述《qrtt1 (thinking in java)》之铭言:
: : == local q ==
: : 猜一猜、猜一猜、猜.......一...猜~~~~~~~~~~~~
: : 判断args有没有东西
: : 不可以用if(args==null)
: : 要用if(args.length==0)
: 这种的猜出来才有鬼...
: 给一下source吧,不然只知道你对null作了些不合理的命令。
记得Local save
第一:
老实说看到後面有 at...
原po还不如把at... 贴上来
第二:
查了一下API对於Exception的解释
Thrown when an application attempts to use null in a case
where an object is required. These include:
* Calling the instance method of a null object.
* Accessing or modifying the field of a null object.
* Taking the length of null as if it were an array.
* Accessing or modifying the slots of null as if it were an array.
* Throwing null as if it were a Throwable value.
五种情形我这笨蛋都干过,还真猜不出你是指哪种错误 +_+
--
--
嘿嘿..我是huge..
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.114.88.71