Q7

Parse-time throws NPE if input value can't be parsed.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.12
  • Fix Version/s: 1.3.13
  • Component/s: ECL
  • Labels:
  • Test Mode:
    JUnit

Description

Ticket 1008

Steps to reproduce:

emit "23" | str | parse-time -format "dd.mm.yyyy"

or

emit "" | str | parse-time -format "dd.mm.yyyy"

The following NPE is thrown:

java.lang.NullPointerException
	at org.eclipse.rcptt.ecl.operations.internal.commands.ParseTimeService.service(ParseTimeService.java:40)
	at org.eclipse.rcptt.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:83)
	at org.eclipse.rcptt.ecl.internal.core.Session$1.run(Session.java:48)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

Activity

Vasili Gulevich made changes - 21/Jul/14 2:44 PM
Field Original Value New Value
Description Ticket link: http://xored.freshdesk.com/helpdesk/tickets/1008

Steps to reproduce:

{code}
emit "23" | str | parse-time -format "dd.mm.yyyy"
{code}
or
{code}
emit "" | str | parse-time -format "dd.mm.yyyy"
{code}

The following NPE is thrown:

{code}
java.lang.NullPointerException
at org.eclipse.rcptt.ecl.operations.internal.commands.ParseTimeService.service(ParseTimeService.java:40)
at org.eclipse.rcptt.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:83)
at org.eclipse.rcptt.ecl.internal.core.Session$1.run(Session.java:48)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
{code}


[Ticket 1008|http://support.xored.com/helpdesk/tickets/1008]

Steps to reproduce:

{code}
emit "23" | str | parse-time -format "dd.mm.yyyy"
{code}
or
{code}
emit "" | str | parse-time -format "dd.mm.yyyy"
{code}

The following NPE is thrown:

{code}
java.lang.NullPointerException
at org.eclipse.rcptt.ecl.operations.internal.commands.ParseTimeService.service(ParseTimeService.java:40)
at org.eclipse.rcptt.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:83)
at org.eclipse.rcptt.ecl.internal.core.Session$1.run(Session.java:48)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
{code}


Vasili Gulevich made changes - 21/Jul/14 2:44 PM
Status Open [ 1 ] In Progress [ 3 ]
Vasili Gulevich made changes - 21/Jul/14 5:04 PM
Resolution Fixed [ 1 ]
Test Mode Manual JUnit
Status In Progress [ 3 ] Resolved [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    26/Jun/14 1:17 PM
    Updated:
    21/Jul/14 5:04 PM
    Resolved:
    21/Jul/14 5:04 PM