Skip to content

Commit

Permalink
avoid possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 12, 2013
1 parent e35f4b9 commit 0fc36d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/webapp/app/fabric/js/profile.ts
Expand Up @@ -43,7 +43,7 @@ module Fabric {
});

$scope.doRegister = () => {
if (!$scope.versionId.isBlank() && !$scope.profileId.isBlank()) {
if ($scope.versionId && $scope.profileId && !$scope.versionId.isBlank() && !$scope.profileId.isBlank()) {
Core.register(jolokia, $scope, {
type: 'exec', mbean: managerMBean,
operation: 'getProfile(java.lang.String, java.lang.String)',
Expand Down

0 comments on commit 0fc36d9

Please sign in to comment.