I had the same bug, and reverting to Java 8 update 251 fixed it.
To uninstall Java on Mac:
In terminal, run this command. This will remove the Java Plug-In, and also remove the Java preference pane from the system preferences.
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin && sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefpane
Now, you need to install the new version of Java. I downloaded Java 8 update 251 from Java's website here.
My Mac complained about it not being a trusted download, so I had to go to my System Preferences -> Security & Privacy -> General tab, and click "Open anyway" for it to install. Now it works again! Hope it works for you as well.