Q7

NPE when getting property value

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.13
  • Fix Version/s: 1.2.16
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Manual

Description

Hi Ivan,

I have been facing this problem (using the -raw option with the get-property command) more than once and in different situations.

Here is the error produced in the details of the failure:

Error in plugin: org.eclipse.ecl.core
                                      message:
                                      exception:
                                          java.lang.NullPointerException
                                              at java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:263)
                                              at org.eclipse.ecl.internal.core.Pipe.write(Pipe.java:78)
                                              at com.xored.tesla.ecl.internal.impl.commands.GetPropertyService.serviceRawGet(GetPropertyService.java:68)
                                              at com.xored.tesla.ecl.internal.impl.commands.GetPropertyService.service(GetPropertyService.java:30)
                                              at org.eclipse.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:65)
                                              at org.eclipse.ecl.internal.core.Session$1.run(Session.java:43)
                                              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I haven't traced all the different styles that produced that error but here is the portion of the script that caused that error:

 
with [get-editor "test_engine" | get-diagram | get-edit-part -className GraphModelPart | get-edit-part
    -className GraphModelBodyPart | get-edit-part -className RepeatPart | get-edit-part -className RepeatBodyPart
    | get-edit-part -className AlternativeSetPart] {
    get-property "getContentPane().getChildren().AltSetContentFigure[1].getChildren().AlternativeFigure[0].getChildren().ConstrainedAltHeaderFig[0].getChildren().Figure[0].getChildren().DynConstraintFigure[0].getBackgroundColor()" -raw
}

The only items that the -raw option works well with are the simple tree items or so.

Please have a look at that issue.

Activity

Andrey Sobolev made changes - 17/Jan/13 12:06 PM
Field Original Value New Value
Remaining Estimate 2 hours [ 7200 ]
Original Estimate 2 hours [ 7200 ]
Andrey Sobolev made changes - 17/Jan/13 6:17 PM
Fix Version/s 1.2.15 [ 11972 ]
Fix Version/s 1.2.16 [ 11974 ]

People

  • Assignee:
    sergey
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    14/Jan/13 8:22 PM
    Updated:
    21/Jan/13 8:04 PM
    Resolved:
    21/Jan/13 8:04 PM

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified