开发者

NullPointerEx. caused by NullPointerEx. caused by NullPointerEx

I get this weird exception I try to run my Android application. I'm using a normal Activity-class and I've managed to get a ListView up a working. I've added a onClickListerner to the listitems. I've got this error message several times on various occasions.

Why are the exceptions chained?

cause  NullPointerException  (id=830007823976)  
    -> cause    NullPointerException  (id=830007823976) 
        -> cause    NullPointerException  (id=830007823976) 
            -> cause    NullPointerException  (id=830开发者_如何学JAVA007823976) 
                -> cause    NullPointerException  (id=830007823976) 
                detailMessage   null    
                stackState   (id=830007824008)  
                stackTrace  null    
             .....


Note that the IDs are all the same - non-chained exceptions have themselves as the cause. There is only one NullPointerException here, so your task is to find the line where a null value is being dereferenced, and how it got there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜