cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaanHoogland <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8941: fix NPE when migrate vm ...
Date Sun, 25 Oct 2015 10:59:51 GMT
Github user DaanHoogland commented on a diff in the pull request:
    --- Diff: engine/orchestration/src/com/cloud/vm/ ---
    @@ -1763,7 +1763,7 @@ private void orchestrateStorageMigration(final String vmUuid, final
                 if (migrationResult) {
                     //if the vm is migrated to different pod in basic mode, need to reallocate
    -                if (!vm.getPodIdToDeployIn().equals(destPool.getPodId())) {
    +                if (destPool.getPodId() != null && !destPool.getPodId().equals(vm.getPodIdToDeployIn()))
    --- End diff --
    destpool is not guaranteed to be not null either. Overlooked that detail before but maybe
we want to change the condition to
    (destPool != null && destPool.getPodId() != null && !destPool.getPodId().equals(vm.getPodIdToDeployIn()))

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message