Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] Exception and problems when using getSelectedObject()

Lorenz B. buehmann at
Sun Feb 5 02:44:58 PST 2017

Ehm, a NullPointerException should be obvious...
if no property is selected resp. the last was unselected, the returned
value will be NULL of course.
> Hi, I am developing a protege plugin and I want to get the selected
> object property from an owlobjectPropertySelectorPanel, So I
> introduced this line to check such requirement JLabel lab=new
> JLabel(objectPropPanel.getSelectedObject().asOWLObjectProperty().getIRI().getFragment());An
> exception at this line was raised(captured from the console or log)
> NullPointerException: null .....( Could you please help
> me, was my use of getSelectedObject is incorrect? Thank you in advance.
> ------------------------------------------------------------------------
> View this message in context: Exception and problems when using
> getSelectedObject()
> <>
> Sent from the Protege Developer mailing list archive
> <>
> at
> _______________________________________________
> protege-dev mailing list
> protege-dev at

Lorenz Bühmann
AKSW group, University of Leipzig
Group: - semantic web research center

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-dev mailing list