作者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