Hi,
i have the following bit of code:
[...]int typeId = idfcollection.getValue(att).getDataType();IDfValue value = idfcollection.getValue(att);if(typeId==4){ IDfTime time = (IDfTime)value.asTime(); if(!time.toString().equals("nulldate")){[...]
This normally works but sometimes i get the following error:
java.lang.IllegalArgumentException: MONTH at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2498) at java.util.Calendar.updateTime(Calendar.java:2299) at java.util.Calendar.complete(Calendar.java:1340) at java.util.Calendar.get(Calendar.java:1120) at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:930) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:837) at java.text.SimpleDateFormat.format(SimpleDateFormat.java:809) at java.text.DateFormat.format(DateFormat.java:331) at com.documentum.fc.common.DfTime.toString(DfTime.java:330)
This error happens in the line:
if(!time.toString().equals("nulldate")){
and i've been searching for possible factors for this to happen but until now not having any luck, does anyone know why this might happen?
Thanks, Miguel.