我目前有一个buzztouch Android应用我从谷歌播放创建错误的一个问题是安卓:显示java.lang.NullPointerException
NullPointerException
in BT_viewUtilities.updateBackgroundColorsForScreen()
我已经把范围缩小到下面的代码,有没有人看到任何代码中的错误。如果你需要别的东西,请问,这可以解决不少应用程序。谢谢
//updates a screens background colors and image...
public static void updateBackgroundColorsForScreen(final Activity theActivity, final BT_item theScreenData){
BT_debugger.showIt(objectName + ":updateBackgroundColorsForScreen with nickname: \"" + theScreenData.getItemNickname() + "\"");
我不知道你是什么意思时,你说“范围缩小”,但这里有一个小技巧:空指针带有它告诉你在哪条线路发生问题的线路号。 – keyser
'产生的原因:在com.idragracenews.BT_viewUtilities.updateBackgroundColorsForScreen(BT_viewUtilities.java:37)显示java.lang.NullPointerException ' 这里是线37 “BT_debugger.showIt(对象名+ “:与updateBackgroundColorsForScreen昵称:\” “+ theScreenData.getItemNickname()+”\“”);' – Alton