Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-03-15 17:30:26 -0400
committerPawel Piech2012-03-30 16:13:03 -0400
commitc74c316aafbd6be0d887e8be613e015169ed5078 (patch)
tree3af3718bd176d8e112feb846286a82cb76fa0ce2
parent839411a4f1e70c4876fe56c2481c4f5cecb50f86 (diff)
downloadeclipse.platform.debug-c74c316aafbd6be0d887e8be613e015169ed5078.tar.gz
eclipse.platform.debug-c74c316aafbd6be0d887e8be613e015169ed5078.tar.xz
eclipse.platform.debug-c74c316aafbd6be0d887e8be613e015169ed5078.zip
Bug 374447 - [memory] NPE in MemoryRenderingTests.testBindingChangeNotification testv20120330-2013
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/view/memory/MemoryRenderingTests.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/view/memory/MemoryRenderingTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/view/memory/MemoryRenderingTests.java
index 448c7ef68..0e24d4275 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/view/memory/MemoryRenderingTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/view/memory/MemoryRenderingTests.java
@@ -123,13 +123,18 @@ public class MemoryRenderingTests extends TestCase {
}
};
IMemoryRenderingManager manager = DebugUITools.getMemoryRenderingManager();
+
+ // bug 374447 - Need to make sure that DynamicRenderingBindings singleton
+ // is initialized
+ IMemoryBlock block = new MemoryBlockDynamic();
+ IMemoryRenderingType[] types = manager.getRenderingTypes(block);
+
try {
manager.addListener(listener);
assertFalse("Renderings should not have changed yet", changed[0]);
DynamicRenderingBindings.setBinding("rendering_type_2");
assertTrue("Renderings should have changed", changed[0]);
- IMemoryBlock block = new MemoryBlockDynamic();
- IMemoryRenderingType[] types = manager.getRenderingTypes(block);
+ types = manager.getRenderingTypes(block);
assertEquals("Wrong number of bindings", 1, types.length);
assertEquals("Wrong binding", "rendering_type_2", types[0].getId());
} finally {

Back to the top