Closed ghost closed 8 years ago
Hi @ghost thanks for reporting the bug. I think this bug could be an easy to fix issue :) Maybe a project collaborator could help :) cc/ @Aracem @JcMinarro
Hi @ghost which version are you using? Could you tell us how to reproduce this bug?
Hi all. I've investigated this issue, it's quite strange.
According to the trace, the problem starts in RendererAdapter.java:100 . One line before, getItem(position) seems to get a null reference, which is never checked and it crashes with NPE later on.
So, a null trace value is pushed somewhere. But the only point where new entries are added, is in Logcat::readLogcat() method, which has a null check before pushing new traces. Also, Trace::fromString(String) utility method rejects null values.
So apparently the architecture already rejects null values, but @ghost found a corner case where at least one is pushed.
@pedrovgs Maybe it's better to modify renderers library itself, and ensure no null values are pushed into RendererAdapter instances.
@vic-gonzi with the last renderers version I've published this bug should be fixed. Could you get some time to send a PR with the update? Once the renderers library be updated we can close this bug.
@pedrovgs Let´s kill it. https://github.com/pedrovgs/Lynx/pull/21
Hello I recently experienced a crash with the app: