diff options
| author | Alan Conway <aconway@apache.org> | 2012-12-19 20:06:05 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-12-19 20:06:05 +0000 |
| commit | f85d4baa2ffada3b60111472373abedae3bd53ce (patch) | |
| tree | 9508171b6a28bd09b9db2443d3ffbc7c99cae5c7 /cpp | |
| parent | 0e030a0ea4f92b588a93f530313f922493888b77 (diff) | |
| download | qpid-python-f85d4baa2ffada3b60111472373abedae3bd53ce.tar.gz | |
NO-JIRA: Fix core dump if ha plugin is loaded but ha-cluster=no
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424071 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/qpid/ha/HaPlugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/ha/HaPlugin.cpp b/cpp/src/qpid/ha/HaPlugin.cpp index 5edb98c135..d26b466847 100644 --- a/cpp/src/qpid/ha/HaPlugin.cpp +++ b/cpp/src/qpid/ha/HaPlugin.cpp @@ -86,7 +86,7 @@ struct HaPlugin : public Plugin { void initialize(Plugin::Target& target) { broker::Broker* broker = dynamic_cast<broker::Broker*>(&target); - if (broker) haBroker->initialize(); + if (broker && haBroker.get()) haBroker->initialize(); } void finalize() { |
