[owl-s] NPE in Profile.toString()
Jim Andreou
jim.andreou at gmail.com
Mon Jun 15 05:31:41 EDT 2009
And a minor issue: I sometimes get NPEs when I print a Profile. The cause is
this (ProfileImpl.java): @Override
public String toString() {
StringBuilder str = new StringBuilder(getLabel()); <-- getLabel() might be
null
Note that this same issue only coincidentally doesn't appear in ProcessImpl:
/* @see impl.owl.WrappedIndividual#toString() */
@Override
public String toString()
{
final OWLIndividualList<Input> inputs = getInputs();
final OWLIndividualList<Output> outputs = getOutputs();
final StringBuffer str = new StringBuffer(getLabel() + " " + getURI() +
"\n"); <-- this seems like old, pre 2.0 code anyway
I would happily perform such minor fixes myself if I am given commit access
to the repository - what do you think? (I will probably be quite a heavy
user of this for the next few months).
Thanks,
Dimitris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mindswap.org/pipermail/owl-s/attachments/20090615/0d398019/attachment-0001.html
More information about the OWL-S
mailing list