Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除事件后事件还在,点击后崩溃 #11

Open
pingplug opened this issue Apr 28, 2016 · 5 comments
Open

删除事件后事件还在,点击后崩溃 #11

pingplug opened this issue Apr 28, 2016 · 5 comments
Labels

Comments

@pingplug
Copy link

崩溃报告:
Android Version: 5.1.1
Device Model: Moto G 2014 LTE
Device Manufacturer: motorola
App Version: 0.9.5 (29)


java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maxiee.heartbeat/com.maxiee.heartbeat.ui.EventDetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long com.maxiee.heartbeat.model.Event.getTimestamp()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maxiee.heartbeat/com.maxiee.heartbeat.ui.EventDetailActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'long com.maxiee.heartbeat.model.Event.getTimestamp()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2420)
at android.app.ActivityThread.access$900(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5294)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'long com.maxiee.heartbeat.model.Event.getTimestamp()' on a null object reference
at com.maxiee.heartbeat.ui.EventDetailActivity.onCreate(EventDetailActivity.java:124)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2311)
... 11 more

ps:崩溃报告页面不能滚动😂

@maxiee
Copy link
Owner

maxiee commented Apr 28, 2016

我想了解一下更详细的信息。

请问你的删除操作是在哪个界面进行的?另外,按照同样的操作,是否还能复现这个崩溃问题?

感谢反馈~崩溃页面滚动会记得加上……囧rz

@pingplug
Copy link
Author

在事件列表里面操作的
之后的尝试都不能复现这个问题

@maxiee
Copy link
Owner

maxiee commented Apr 29, 2016

看来是一个概率发生的 Bug 啊……😰

@pingplug
Copy link
Author

pingplug commented May 9, 2016

今天新建事件后界面没有显示最新的事件,不会是界面没有及时刷新?

@maxiee
Copy link
Owner

maxiee commented May 10, 2016

按理说不应该,事件存在一个单例里面,每次从添加页面返回都会更新界面。

可能是我这块的实现还是有问题额……目前考虑用响应式框架 Agera 重构这块,自己维护太麻烦了。

@maxiee maxiee added the bug label Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants