Skip to content

Commit

Permalink
Bug 551901 - Unspecified organization name displays "by unknown"
Browse files Browse the repository at this point in the history
Change-Id: I3fdb3cc9b6af19c30a96be92ec842f83137ae4cd
Signed-off-by: PyvesB <PyvesDev@gmail.com>
  • Loading branch information
PyvesB authored and l3-g5 committed Oct 21, 2019
1 parent 2a321af commit f8df67f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.epp.mpc-target/staging.target
Expand Up @@ -7,7 +7,7 @@
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.equinox.ds" version="0.0.0"/>
<unit id="org.eclipse.sdk.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.13-I-builds"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.14-I-builds"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.hamcrest" version="0.0.0"/>
Expand Down
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2010, 2018 The Eclipse Foundation and others.
* Copyright (c) 2010, 2019 The Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand All @@ -10,6 +10,7 @@
* Contributors:
* The Eclipse Foundation - initial API and implementation
* Yatta Solutions - bug 314936, bug 398200, bug 432803: public API, bug 413871: performance
* Pierre-Yves B., pyvesdev@gmail.com - Bug 551901: Unspecified organization name displays "by unknown"
*******************************************************************************/
package org.eclipse.epp.internal.mpc.ui.catalog;

Expand Down Expand Up @@ -348,7 +349,11 @@ protected CatalogItem createCatalogItem(final INode node, String categoryId, boo
} else {
catalogItem.setDescription(node.getShortdescription());
}
catalogItem.setProvider(node.getCompanyname());
String provider = node.getCompanyname();
if (provider == null || provider.isEmpty()) {
provider = node.getOwner();
}
catalogItem.setProvider(provider);
String updateurl = node.getUpdateurl();
if (updateurl != null) {
try {
Expand Down

0 comments on commit f8df67f

Please sign in to comment.