Skip to content

Commit

Permalink
#466 avoid some ugly exceptions in the JavaScript console
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Aug 12, 2013
1 parent c7766f6 commit 4b8340c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hawtio-web/src/main/webapp/app/osgi/js/bundle.ts
Expand Up @@ -85,9 +85,11 @@ module Osgi {


$scope.mavenLink = (row) => {
var loc = row.Location;
if (loc && loc.startsWith("mvn:")) {
return "#/maven/artifact/" + loc.substring(4);
if (angular.isObject(row)) {
var loc = row.Location;
if (loc && loc.startsWith("mvn:")) {
return "#/maven/artifact/" + loc.substring(4);
}
}
// TODO try using the LogQuery mbean to find the mvn coords for a bundle id?
return "";
Expand Down

0 comments on commit 4b8340c

Please sign in to comment.