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

Hide
komaz added a comment - 14/Jan/13 8:23 PM

A small correction:

The –raw option works well only with simple or direct properties of the object i.e properties from one word only; not nested or lower-level properties like the one shown in the example below.

Show
komaz added a comment - 14/Jan/13 8:23 PM
A small correction: The –raw option works well only with simple or direct properties of the object i.e properties from one word only; not nested or lower-level properties like the one shown in the example below.

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