When user selects any menu item from "No nothing". the following exception happens because PassFailJFrame logArea is not created
java.lang.NullPointerException: Cannot invoke "javax.swing.JTextArea.append(String)" because "PassFailJFrame.logArea" is null at PassFailJFrame.lambda$log$0(PassFailJFrame.java:1353) at PassFailJFrame.invokeOnEDT(PassFailJFrame.java:570) at PassFailJFrame.invokeOnEDTUncheckedException(PassFailJFrame.java:584) at PassFailJFrame.log(PassFailJFrame.java:1353) at MenuItemTestHelper.lambda$createNoNothingMenu$0(MenuItemTestHelper.java:118) Fix is to create log area ------------- Commit messages: - 8373847: Test javax/swing/JMenuItem/MenuItemTest/bug6197830.java failed because The test case automatically fails when clicking any items in the “Nothing” menu in all four windows (Left-to-right)-Menu Item Test and (Right-to-left)-Menu Item Test Changes: https://git.openjdk.org/jdk/pull/28887/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28887&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8373847 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/28887.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/28887/head:pull/28887 PR: https://git.openjdk.org/jdk/pull/28887
