mirror of https://github.com/apache/cloudstack.git
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:
parent
44012ddadf
commit
eb8e630f24
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue