AlertGenerator: Fix NPE from CLOUDSTACK-3272

There was a commit 4b89a45e57 on master which was
added by "root@devcloud.apache.org" with no committer signature so I cannot tell
whom to reach. In the code it looks like they forgot to initialize the static
config dao variable which is causing NPE on master. The fix simply initializes
the s_configDao with injected configDao object.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2014-06-02 22:43:27 +05:30
parent 44012ddadf
commit eb8e630f24
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public class AlertGenerator {
void init() {
s_dcDao = dcDao;
s_podDao = podDao;
s_configDao = configDao;
}
public static void publishAlertOnEventBus(String alertType, long dataCenterId, Long podId, String subject, String body) {