In my code, the constructor is called in the simplest way from swing's Event Dispatch Thread:
JDateChooser dateChooser = new JDateChooser();
This line is the first line in the constructor of a class that extends JPanel. That's enough to provoke the exception.
I have two IDE projects. The first one is a library with JForex dependency (with artefact com.dukascopy.dds2:DDS2-jClient-JForex:3.0.15 in the POM file). The second one has a dependency on the first (library) project. That latter project's source code contains the mentioned invocation of the nullary constructor.
The stack trace I receive is as follows:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.dukascopy.ui.components.textfield.CommonFormattedTextField.decorateFonts(CommonFormattedTextField.java:217)
at com.dukascopy.ui.components.textfield.CommonFormattedTextField.updateUI(CommonFormattedTextField.java:184)
at com.dukascopy.ui.components.calendar.JTextFieldDateEditor.updateUI(JTextFieldDateEditor.java:148)
at javax.swing.text.JTextComponent.<init>(JTextComponent.java:312)
at javax.swing.JTextField.<init>(JTextField.java:231)
at javax.swing.JTextField.<init>(JTextField.java:172)
at javax.swing.JFormattedTextField.<init>(JFormattedTextField.java:276)
at com.dukascopy.ui.components.textfield.CommonFormattedTextField.<init>(CommonFormattedTextField.java:60)
at com.dukascopy.ui.components.calendar.JTextFieldDateEditor.<init>(JTextFieldDateEditor.java:110)
at com.dukascopy.ui.components.calendar.JTextFieldDateEditor.<init>(JTextFieldDateEditor.java:107)
at com.dukascopy.ui.components.calendar.JTextFieldDateEditor.<init>(JTextFieldDateEditor.java:99)
at com.dukascopy.ui.components.calendar.JDateChooser.<init>(JDateChooser.java:171)
at com.dukascopy.ui.components.calendar.JDateChooser.<init>(JDateChooser.java:91)
at com.argiris... <*** my source code, the line mentioned above ***>