Changeset 4715

Show
Ignore:
Timestamp:
05/30/08 12:00:28 (6 months ago)
Author:
marc.englund@…
Message:

Threw npe if value was null, and used changed time before date. Probably caused #1756

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/com/itmill/toolkit/terminal/gwt/client/ui/Time.java

    r3921 r4715  
    248248 
    249249    public void onChange(Widget sender) { 
     250        if (datefield.getCurrentDate() == null) { 
     251            // was null on server, need to set 
     252            datefield.setCurrentDate(new Date()); 
     253        } 
    250254        if (sender == hours) { 
    251255            int h = hours.getSelectedIndex();