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 informatik.uni-leipzig.de
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 .....(XYZ.java:81) 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()
> <http://protege-project.136.n4.nabble.com/Exception-and-problems-when-using-getSelectedObject-tp4667421.html>
> Sent from the Protege Developer mailing list archive
> <http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html>
> at Nabble.com.
>
>
> _______________________________________________
> protege-dev mailing list
> protege-dev at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-dev

-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-dev/attachments/20170205/43260ad6/attachment.html>


More information about the protege-dev mailing list