醒目的空异常 [英] catching null exception

查看:77
本文介绍了醒目的空异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Java应用程序的Andr​​oid和我目前我得到了一个问题,调试器步入我的catch块,不管怎样前为空?有没有人见过这样的事情之前?

 }
赶上(例外前)
{
   //调试器即将通过catch块和前为空????
}
 

解决方案

这听起来像源$ C ​​$ c和编译的类是不同步的,所以调试器步入错误的块。

试着做一个干净的,然后重建。

I'm working on a java application for android and I currently am getting a problem where the debugger is stepping into my catch block and somehow ex is null? Has anyone seen anything like this before?

}
catch(Exception ex)
{
   // Debugger is coming through the catch block and ex is null ????
}

解决方案

This sounds like the source code and the compiled classes are out of sync, so the debugger is stepping into the wrong block.

Try to do a clean and then a rebuild.

这篇关于醒目的空异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆