Community
Participate
Working Groups
Build Identifier: I20091210-1301 CDT import/export memory dialog queries IRepositionableMemoryRendering.getSelectedAddress() when selection is changed in rendering. When rendering is in process of being created, handling the selection change will end in a NPE. Reproducible: Always Steps to Reproduce: 1. Install attached plugin. The plugin will install a memory view action called (NPE test) 2. Start a debug session 3. Open Memory View and add a memory monitor 4. Select the memory monitor and add a Hex rendering 5. A message dialog with NPE details will be displayed.
Created attachment 156487 [details] test-case plugin Test case plugin to expose NPE
Created attachment 156488 [details] Fix Proposed fix. Return NULL from AbstractAsyncTableRendering#getSelectedAddress if the rendering is not created yet
Created attachment 165923 [details] patch with additional null checks in public methods This patch builds adds additional null checks to other public methods that might also be called in similar situations
applied Jeremiah's patch.
verified.