diff --git a/plugins/ui-designer/testData/MethodCallInSuperTest.java b/plugins/ui-designer/testData/MethodCallInSuperTest.java index eaab7412e541..1fc78f1130cd 100644 --- a/plugins/ui-designer/testData/MethodCallInSuperTest.java +++ b/plugins/ui-designer/testData/MethodCallInSuperTest.java @@ -20,7 +20,11 @@ public class MethodCallInSuperTest extends JDialog { private JComponent myRootComponent; public MethodCallInSuperTest() { - super(JOptionPane.getRootFrame(), "", true); + super(getNullFrame(), "", true); getContentPane().add(myRootComponent); } + + private static JFrame getNullFrame() { + return null; + } } \ No newline at end of file