1I was able to solve this by :
2
3Closing SQL developer
4Deleting the file SqlHistory.xml that is located at C:\Users\AppData\Roaming\SQL Developer\. Alternatively, you can rename it to e.g SqlHistoryOLD.xml
5Now when you open SQL developer and create a new SQL worksheet, it will work :)