开发者

NullPointerEx. caused by NullPointerEx. caused by NullPointerEx

开发者 https://www.devze.com 2023-04-06 04:33 出处:网络
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\

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

精彩评论

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

关注公众号