You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2008/10/24 22:27:46 UTC
[jira] Updated: (FELIX-789) NPE in ResourceComparator if no
presentationname given
[ https://issues.apache.org/jira/browse/FELIX-789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall updated FELIX-789:
----------------------------------
Fix Version/s: felix-1.4.0
> NPE in ResourceComparator if no presentationname given
> ------------------------------------------------------
>
> Key: FELIX-789
> URL: https://issues.apache.org/jira/browse/FELIX-789
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Affects Versions: bundlerepository-1.2.0
> Environment: Eclipse Equinox 3.4.0
> org.apache.felix.bundlerepository_1.2.0
> Reporter: Dirk Mahler
> Assignee: Richard S. Hall
> Fix For: felix-1.4.0
>
>
> If the OBR repository is created using the latest bindex version available from the OSGi web site there may be resource entries without presentationnames. Processing such an entry results in a NullPointerException in the class org.apache.felix.bundlerepository.ResourceComparator if the variable name1 becomes null:
> String name1 = (String) r1.getPresentationName();
> String name2 = (String) r2.getPresentationName();
> return name1.compareToIgnoreCase(name2) ;
> Replacing the last line with
> return name1 != null ? name1.compareToIgnoreCase(name2) : -1;
> fixes the issue.
> See also discussion (especially the latest posting by Peter Kriens) under
> http://markmail.org/message/spi5uuceaqhll2t5#query:felix%20obr%20bindex%20nullpointerexception+page:1+mid:spi5uuceaqhll2t5+state:results
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.