{"action":"opened","issue":{"url":"https://api.github.com/repos/jecelyin/920-text-editor-v2/issues/41","repository_url":"https://api.github.com/repos/jecelyin/920-text-editor-v2","labels_url":"https://api.github.com/repos/jecelyin/920-text-editor-v2/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/jecelyin/920-text-editor-v2/issues/41/comments","events_url":"https://api.github.com/repos/jecelyin/920-text-editor-v2/issues/41/events","html_url":"https://github.com/jecelyin/920-text-editor-v2/issues/41","id":133260867,"number":41,"title":"v2.16.1.30 Crash: Unable to start activity ComponentInfo{com.jecelyin.editor2/com.jecelyin.editor2.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.jecelyin.editor2.ui.TabManager.updateFragment(int, com.jecelyin.editor2.ui.EditorFragment)' on a null object reference","user":{"login":"920-Text-Editor-User","id":16668166,"avatar_url":"https://avatars.githubusercontent.com/u/16668166?v=3","gravatar_id":"","url":"https://api.github.com/users/920-Text-Editor-User","html_url":"https://github.com/920-Text-Editor-User","followers_url":"https://api.github.com/users/920-Text-Editor-User/followers","following_url":"https://api.github.com/users/920-Text-Editor-User/following{/other_user}","gists_url":"https://api.github.com/users/920-Text-Editor-User/gists{/gist_id}","starred_url":"https://api.github.com/users/920-Text-Editor-User/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/920-Text-Editor-User/subscriptions","organizations_url":"https://api.github.com/users/920-Text-Editor-User/orgs","repos_url":"https://api.github.com/users/920-Text-Editor-User/repos","events_url":"https://api.github.com/users/920-Text-Editor-User/events{/privacy}","received_events_url":"https://api.github.com/users/920-Text-Editor-User/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-12T14:55:45Z","updated_at":"2016-02-12T14:55:45Z","closed_at":null,"body":"从后台打开\n======================================================\nApp Version: v2.16.1.30\nPhone: nubia NX601J\nAndroid Version: 5.0\nMemory: 473 MB / 1864 MB\n\n\nStacktrace:\n\njava.lang.RuntimeException: Unable to start activity ComponentInfo{com.jecelyin.editor2/com.jecelyin.editor2.ui.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.jecelyin.editor2.ui.TabManager.updateFragment(int, com.jecelyin.editor2.ui.EditorFragment)' on a null object reference\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2441)\n\tat android.app.ActivityThread.access$800(ActivityThread.java:154)\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loop(Looper.java:135)\n\tat android.app.ActivityThread.main(ActivityThread.java:5336)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat java.lang.reflect.Method.invoke(Method.java:372)\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)\nCaused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.jecelyin.editor2.ui.TabManager.updateFragment(int, com.jecelyin.editor2.ui.EditorFragment)' on a null object reference\n\tat com.jecelyin.editor2.ui.EditorFragment.onViewCreated(EditorFragment.java:130)\n\tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1086)\n\tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)\n\tat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1230)\n\tat android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2042)\n\tat android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:165)\n\tat android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:543)\n\tat com.jecelyin.common.app.JecActivity.setStatusBarColor(JecActivity.java:32)\n\tat com.jecelyin.editor2.ui.MainActivity.onCreate(MainActivity.java:146)\n\tat android.app.Activity.performCreate(Activity.java:5976)\n\tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)\n\t... 10 more\n\n\n\nTag: MainActivity.onNewIntent#288\nMsg: Attempt to invoke virtual method 'boolean com.jecelyin.editor2.ui.TabManager.newTab(java.io.File, java.lang.String)' on a null object reference\nStacktrace:\njava.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.jecelyin.editor2.ui.TabManager.newTab(java.io.File, java.lang.String)' on a null object reference\n\tat com.jecelyin.editor2.ui.MainActivity.openFile(MainActivity.java:539)\n\tat com.jecelyin.editor2.ui.MainActivity.openFile(MainActivity.java:527)\n\tat com.jecelyin.editor2.ui.MainActivity.processIntentImpl(MainActivity.java:325)\n\tat com.jecelyin.editor2.ui.MainActivity.processIntent(MainActivity.java:293)\n\tat com.jecelyin.editor2.ui.MainActivity.onNewIntent(MainActivity.java:288)\n\tat android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1210)\n\tat android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2511)\n\tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:3014)\n\tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3063)\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2446)\n\tat android.app.ActivityThread.access$800(ActivityThread.java:154)\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\n\tat android.os.Looper.loop(Looper.java:135)\n\tat android.app.ActivityThread.main(ActivityThread.java:5336)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat java.lang.reflect.Method.invoke(Method.java:372)\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/cplusplus.xml(#<unknown>)\nxmode-error.delegate-invalidc::INCLUDE\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 498 >= hi.endOffset 498\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 499 > maxLength 498\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 517 > maxLength 498\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 499 >= hi.endOffset 498\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/cplusplus.xml(#<unknown>)\nxmode-error.delegate-invalidc::LEX\nStacktrace:\n\n\nTag: ModeProvider.loadMode#241\nMsg: syntax/cplusplus.xml\nStacktrace:\njava.lang.NullPointerException: Attempt to read from field 'java.util.List com.jecelyin.highlight.jedit.syntax.ParserRuleSet.imports' on a null object reference\n\tat com.jecelyin.highlight.jedit.syntax.ParserRuleSet.resolveImports(ParserRuleSet.java:89)\n\tat com.jecelyin.highlight.jedit.syntax.ParserRuleSet.resolveImports(ParserRuleSet.java:92)\n\tat com.jecelyin.highlight.jedit.syntax.XModeHandler.endDocument(XModeHandler.java:337)\n\tat org.apache.harmony.xml.ExpatParser.endDocument(ExpatParser.java:532)\n\tat org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:476)\n\tat org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)\n\tat org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)\n\tat com.jecelyin.highlight.jedit.syntax.ModeProvider.loadMode(ModeProvider.java:237)\n\tat com.jecelyin.highlight.jedit.JEdit.loadMode(JEdit.java:158)\n\tat com.jecelyin.highlight.jedit.Mode.loadIfNecessary(Mode.java:150)\n\tat com.jecelyin.highlight.jedit.Mode.getTokenMarker(Mode.java:126)\n\tat com.jecelyin.highlight.Buffer.setMode(Buffer.java:67)\n\tat com.jecelyin.editor2.ui.Document.onAsyncReaded(Document.java:86)\n\tat com.jecelyin.editor2.ui.Document$ReadFileTask.doInBackground(Document.java:166)\n\tat com.jecelyin.editor2.ui.Document$ReadFileTask.doInBackground(Document.java:147)\n\tat android.os.AsyncTask$2.call(AsyncTask.java:288)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\n\tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\n\tat java.lang.Thread.run(Thread.java:818)\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/cplusplus.xml(#<unknown>)\nxmode-error.delegate-invalidc::CONDITION\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/cplusplus.xml(#<unknown>)\nxmode-error.delegate-invalidc::CORE\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 1847 > maxLength 1846\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 1846 >= hi.endOffset 1846\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 1847 >= hi.endOffset 1846\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 1865 > maxLength 1846\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/c.xml(#<unknown>)\nxmode-error.delegate-invaliddoxygen::DOXYGEN\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/python.xml(#<unknown>)\nxmode-error.delegate-invalidpython::MAIN\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 22 >= hi.endOffset 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 42 > maxLength 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 43 > maxLength 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 28 >= hi.endOffset 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 28 > maxLength 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 27 > maxLength 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 27 >= hi.endOffset 22\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 42 >= hi.endOffset 22\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/php.xml(#<unknown>)\nxmode-error.delegate-invalidxml::DTD-TAGS\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/php.xml(#<unknown>)\nxmode-error.delegate-invalidcss::MAIN\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/php.xml(#<unknown>)\nxmode-error.delegate-invalidhtml::TAGS\nStacktrace:\n\n\nTag: ModeProvider.loadMode#241\nMsg: syntax/php.xml\nStacktrace:\njava.lang.NullPointerException: Attempt to read from field 'java.util.List com.jecelyin.highlight.jedit.syntax.ParserRuleSet.imports' on a null object reference\n\tat com.jecelyin.highlight.jedit.syntax.ParserRuleSet.resolveImports(ParserRuleSet.java:89)\n\tat com.jecelyin.highlight.jedit.syntax.XModeHandler.endDocument(XModeHandler.java:337)\n\tat org.apache.harmony.xml.ExpatParser.endDocument(ExpatParser.java:532)\n\tat org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:476)\n\tat org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)\n\tat org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)\n\tat com.jecelyin.highlight.jedit.syntax.ModeProvider.loadMode(ModeProvider.java:237)\n\tat com.jecelyin.highlight.jedit.JEdit.loadMode(JEdit.java:158)\n\tat com.jecelyin.highlight.jedit.Mode.loadIfNecessary(Mode.java:150)\n\tat com.jecelyin.highlight.jedit.Mode.getTokenMarker(Mode.java:126)\n\tat com.jecelyin.highlight.Buffer.setMode(Buffer.java:67)\n\tat com.jecelyin.editor2.ui.Document.onAsyncReaded(Document.java:86)\n\tat com.jecelyin.editor2.ui.Document$ReadFileTask.doInBackground(Document.java:166)\n\tat com.jecelyin.editor2.ui.Document$ReadFileTask.doInBackground(Document.java:147)\n\tat android.os.AsyncTask$2.call(AsyncTask.java:288)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\n\tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\n\tat java.lang.Thread.run(Thread.java:818)\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/php.xml(#<unknown>)\nxmode-error.delegate-invalidxml::TAGS\nStacktrace:\n\n\nTag: XModeHandler$TagDecl.<init>#553\nMsg: xmode-error: syntax/php.xml(#<unknown>)\nxmode-error.delegate-invalidjavascript::MAIN\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 70441 >= hi.endOffset 70441\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 70443 > maxLength 70441\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 3410 > maxLength 3367\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 3367 >= hi.endOffset 3367\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 479 > maxLength 478\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 478 >= hi.endOffset 478\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: hi.startOffset 479 >= hi.endOffset 478\nStacktrace:\n\n\nTag: Document.highlight#258\nMsg: assert hi.endOffset 498 > maxLength 478\nStacktrace:\n\n\n"}}