Hello.

I've got the following issue(?) in 2.2.3:
Code:
public class SomePanel extends ContentPanel
{
    private final TimeField theFieldTimeStart = new TimeField();
    private final DateTimeFormat theTimeFieldsDateFormat = DateTimeFormat.getFormat("HH:mm");
    public SomePanel()
    {
        theFieldTimeStart.setTriggerAction(ComboBox.TriggerAction.ALL);
        theFieldTimeStart.setFormat(theTimeFieldsDateFormat);
    }

    @Override protected void onRender(Element aParent, int aPos)
    {
        super.onRender(aParent, aPos);
        final Time myTimeStart = new Time();
        myTimeStart.setText("09:00");
        theFieldTimeStart.setValue(myTimeStart);
    }

     private void handleSomeEvent()
    {
        //Here I need to get Date from theFieldTimeStart
        theFieldTimeStart.getValue().getDate(); //causes NPE
        theFieldTimeStart.getDateValue(); //causes NPE
        //my workaround:
        final Date myDateStart = theTimeFieldsDateFormat.parse(theFieldTimeStart.getValue().getText());
    }
}
Is it supposed behavior or I missed a step in initialization?


Thanks.