Community
Participate
Working Groups
java.lang.NullPointerException at java.util.Calendar.setTime(Unknown Source) at java.text.SimpleDateFormat.format(Unknown Source) at java.text.SimpleDateFormat.format(Unknown Source) at java.text.DateFormat.format(Unknown Source) at org.eclipse.jface.databinding.converterfunctions.DateConversionSupport.format(DateConversionSupport.java:91) at org.eclipse.jface.databinding.converterfunctions.DateConversionSupport.format(DateConversionSupport.java:86) at org.eclipse.jface.databinding.converterfunctions.ConvertDate2String.convert(ConvertDate2String.java:26) at org.eclipse.jface.databinding.converters.FunctionalConverter.convertModelToTarget(FunctionalConverter.java:42) at org.eclipse.jface.databinding.internal.ValueBinding.updateTargetFromModel(ValueBinding.java:144) at org.eclipse.jface.databinding.internal.DataBindingContext.bind(DataBindingContext.java:341) at org.eclipse.jface.databinding.internal.DataBindingContext.bind(DataBindingContext.java:375) at org.eclipse.jface.databinding.internal.DataBindingContext.bind(DataBindingContext.java:432) at org.eclipse.ui.examples.rcp.binding.scenarios.NullBinding.createLabelAndText(NullBinding.java:133) at org.eclipse.ui.examples.rcp.binding.scenarios.NullBinding.createGroup(NullBinding.java:119) at org.eclipse.ui.examples.rcp.binding.scenarios.NullBinding.initialize(NullBinding.java:94) at org.eclipse.ui.examples.rcp.binding.scenarios.NullBinding.<init>(NullBinding.java:82) ... 8 more
Not sure if this is still a problem.
This bug is still relevant. DateConversionSupport attempts to format a Date into a String without checking whether the Date is null
I hope you don't mind that I assign this bug to you.
sure
Created attachment 123783 [details] Patch with test Boris, +1 for M5?
Created attachment 123784 [details] mylyn/context/zip
Given the low traffic on this bug, I would vote for fixing this in M6 rather than M5.
What is the value you would expect to have returned when DateFormatSupport.format(Date) is called with a null argument? Null or empty string?
Created attachment 123812 [details] Same patch (can't remember if I changed anything, but just in case)
Created attachment 123813 [details] mylyn/context/zip
Released to HEAD > 20090216
Verified in I20090428-0100