1. 程式人生 > >漢化 的 空指針 bug

漢化 的 空指針 bug

ase java tool lte event open awt 漢化 arch

韓夢飛沙 韓亞飛 [email protected] yue31313 han_meng_fei_sha

null
java.lang.NullPointerException
at com.android.tools.idea.monitor.AndroidToolWindowFactory$4.isActive(AndroidToolWindowFactory.java:236)
at com.android.tools.idea.logcat.AndroidLogcatView.activate(AndroidLogcatView.java:304)
at com.android.tools.idea.monitor.AndroidToolWindowFactory$2.run(AndroidToolWindowFactory.java:160)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:795)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:631)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:387)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

========

這是因為,安卓的一個工具窗口名稱漢化了, 然後程序找不到了。 就返回空,造成空指針了。

安卓監視器的面板名稱被我漢化了,然後另一個漢化文件也有用到這個面板名稱,他們兩個的漢化值不一樣,就造成這個空指針錯誤,修改成一致的 ,問題解決。

漢化 的 空指針 bug