Community
Participate
Working Groups
I'm seeing a null pointer exception (NPE) when I connect to a QEMU ARM debug session using the GDB hardware debugger launch configuration type, open a memory browser view, enter an invalid address, and then enter an invalid address a second time. The call stack shows that the NPE occurs in MemoryViewUtil.java: java.lang.NullPointerException at org.eclipse.debug.internal.ui.views.memory.MemoryViewUtil.alignToBoundary(MemoryViewUtil.java:159) at org.eclipse.debug.internal.ui.views.memory.renderings.TableRenderingModel.convertMemoryBytesToSegments(TableRenderingModel.java:335) at org.eclipse.debug.internal.ui.views.memory.renderings.TableRenderingModel.rebuildContent(TableRenderingModel.java:310) at org.eclipse.debug.internal.ui.views.memory.renderings.TableRenderingModel.handleViewerChanged(TableRenderingModel.java:231) at org.eclipse.debug.internal.ui.views.memory.renderings.AsyncTableRenderingViewer$12.run(AsyncTableRenderingViewer.java:965) at org.eclipse.debug.internal.ui.views.memory.renderings.AsyncTableRenderingViewer.preservingSelection(AsyncTableRenderingViewer.java:519) at org.eclipse.debug.internal.ui.views.memory.renderings.AsyncTableRenderingViewer.doFormatViewer(AsyncTableRenderingViewer.java:956) at org.eclipse.debug.internal.ui.views.memory.renderings.AsyncTableRenderingViewer.formatViewer(AsyncTableRenderingViewer.java:944) at org.eclipse.debug.internal.ui.memory.provisional.AbstractAsyncTableRendering$15.runInUIThread(AbstractAsyncTableRendering.java:2236) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:97) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
Created attachment 254127 [details] I've attached a patch with a fix that checks if address is null in renderContent() in TableRenderingModel.java and if so, exit the function.
Can you Please sign CLA and mention in this bug "This contribution complies with http://www.eclipse.org/legal/CoO.php"
Ok, I've signed the CLA.
Can you mention in the bug ? "This contribution complies with http://www.eclipse.org/legal/CoO.php" Also a testcase for this scenario will be great.
ping!!
This contribution complies with http://www.eclipse.org/legal/CoO.php What do you need for the test case? My description has the steps that I used to reproduce the problem.
I hope you have signed the CLA with the same name and email id ? When I try to commit it complains , that CLA has not been signed by the author.
I'm not sure why it didn't work. I re-signed the CLA. Try it again.
Hi, Have you used "nyee" as your id somewhere ?
Delivered via http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=ca333d577155c854fa31d59ca973ba5f67981510 Thanks, Norman Yee.
@Norman Can you verify if it fixes your scenario with the build ?