mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Fixed NPE for null instant
This commit is contained in:
@ -163,6 +163,10 @@ public class NoCodeWidgetVelocityUtils
|
||||
*******************************************************************************/
|
||||
public String formatDateTime(Instant i)
|
||||
{
|
||||
if(i == null)
|
||||
{
|
||||
return ("");
|
||||
}
|
||||
return QValueFormatter.formatDateTimeWithZone(i.atZone(ZoneId.of(QContext.getQInstance().getDefaultTimeZoneId())));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user