Author: snjeza
Date: 2011-10-27 14:44:29 -0400 (Thu, 27 Oct 2011)
New Revision: 36054
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java
Log:
JBIDE-10065 NullPointerException occurs on selection Software/Update Tab in JBoss Central
Editor
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java
===================================================================
---
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java 2011-10-27
18:38:47 UTC (rev 36053)
+++
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/xpl/DiscoveryViewer.java 2011-10-27
18:44:29 UTC (rev 36054)
@@ -1002,6 +1002,9 @@
// have
// connectors that are filtered based on version of Mylyn
Bundle bundle = Platform.getBundle("org.eclipse.mylyn.tasks.core");
//$NON-NLS-1$
+ if (bundle == null) {
+ bundle = Platform.getBundle("org.eclipse.mylyn.commons.core");
//$NON-NLS-1$
+ }
String versionString = (String) bundle.getHeaders().get("Bundle-Version");
//$NON-NLS-1$
if (versionString != null) {
Version version = new Version(versionString);
Show replies by date