mirror of https://github.com/apache/archiva.git
prevent js npe
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1346613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0af5a819d9
commit
f31f365535
|
@ -895,7 +895,7 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
|
|||
}
|
||||
return projectVersionMetadata;
|
||||
}
|
||||
return null;
|
||||
return new ProjectVersionMetadata();
|
||||
}
|
||||
|
||||
MavenFacet=function(packaging,parent){
|
||||
|
|
|
@ -468,17 +468,23 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>${$.i18n.prop('browse.artifact.packaging')}</th>
|
||||
<td>${projectVersionMetadata.mavenFacet.packaging}</td>
|
||||
</tr>
|
||||
{{if projectVersionMetadata.mavenFacet.parent }}
|
||||
<tr>
|
||||
<th>${$.i18n.prop('browse.artifact.parent')}</th>
|
||||
<td>
|
||||
<a href="#" data-bind="click: displayParent">
|
||||
${projectVersionMetadata.mavenFacet.parent.groupId}:${projectVersionMetadata.mavenFacet.parent.artifactId}:${projectVersionMetadata.mavenFacet.parent.version}
|
||||
</a>
|
||||
</td>
|
||||
{{if projectVersionMetadata.mavenFacet}}
|
||||
<td>${projectVersionMetadata.mavenFacet.packaging}</td>
|
||||
{{else}}
|
||||
<td></td>
|
||||
{{/if}}
|
||||
</tr>
|
||||
{{if projectVersionMetadata.mavenFacet}}
|
||||
{{if projectVersionMetadata.mavenFacet.parent }}
|
||||
<tr>
|
||||
<th>${$.i18n.prop('browse.artifact.parent')}</th>
|
||||
<td>
|
||||
<a href="#" data-bind="click: displayParent">
|
||||
${projectVersionMetadata.mavenFacet.parent.groupId}:${projectVersionMetadata.mavenFacet.parent.artifactId}:${projectVersionMetadata.mavenFacet.parent.version}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue