Skip to content

Commit bb155bb

Browse files
committed
CLOUDSTACK-8708 init wrapped fields with default values
1 parent 10922be commit bb155bb

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

api/src/com/cloud/agent/api/Answer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import com.cloud.utils.exception.ExceptionUtil;
2020

2121
public class Answer extends Command {
22-
protected Boolean result;
22+
protected Boolean result = false;
2323
protected String details;
2424

2525
protected Answer() {

core/src/com/cloud/agent/api/StartupAnswer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
package com.cloud.agent.api;
2121

2222
public class StartupAnswer extends Answer {
23-
Long hostId;
24-
Integer pingInterval;
23+
Long hostId = 0l;
24+
Integer pingInterval = 3000;
2525

2626
protected StartupAnswer() {
2727
}

core/src/com/cloud/agent/api/StartupRoutingCommand.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
import com.cloud.network.Networks.RouterPrivateIpStrategy;
3030

3131
public class StartupRoutingCommand extends StartupCommand {
32-
Integer cpuSockets;
33-
Integer cpus;
34-
Long speed;
35-
Long memory;
36-
Long dom0MinMemory;
37-
Boolean poolSync;
32+
Integer cpuSockets = 0;
33+
Integer cpus = 0;
34+
Long speed = 0l;
35+
Long memory = 0l;
36+
Long dom0MinMemory = 0l;
37+
Boolean poolSync = Boolean.FALSE;
3838

3939

4040
String caps;

0 commit comments

Comments
 (0)