- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    8, 11, 12, 13
- 
        b16
- 
        generic
- 
        generic
                    A DESCRIPTION OF THE PROBLEM :
When setting time in Calendar.setTime(Date date), if 'Date date = null' then setTime() results nullPointerException since it is not able to call date.getTime() within itself. This problem needs null check, and possible default value setting if date = null.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the following in Java
Date date = null;
Calendar.setTime(date);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Possible default value setting?
ACTUAL -
NullPointerException
            
When setting time in Calendar.setTime(Date date), if 'Date date = null' then setTime() results nullPointerException since it is not able to call date.getTime() within itself. This problem needs null check, and possible default value setting if date = null.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the following in Java
Date date = null;
Calendar.setTime(date);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Possible default value setting?
ACTUAL -
NullPointerException
- csr for
- 
                    JDK-8253140 Calendar.setTime(Date date) throws NPE with Date date = null -           
- Closed
 
-         
 
        