wso2 / andes

Apache License 2.0
39 stars 128 forks source link

Fix to avoid NPE when try to run post subscription action #966

Closed charithag closed 6 years ago

charithag commented 6 years ago

Purpose

Fix to avoid NPE when try to run post subscription action.

Goals

NPE throws from Andes kernel when tries to subscribe to a MQTT topic. This is to fix that issue

Approach

Initialize postOpenSubscriptionAction runnable in InboundSubscriptionEvent class inside the overloaded constructor which doesn't allow to set it externally.

User stories

N/A, Bug fix

Release note

Fix to avoid NPE when try to run post subscription action

Documentation

N/A, Bug fix

Training

N/A, Bug fix

Certification

N/A, Bug fix

Marketing

N/A, Bug fix

Automation tests

N/A, Bug fix

Security checks

Samples

N/A, Bug fix

Related PRs

https://github.com/wso2/andes/pull/958

Migrations (if applicable)

N/A, Bug fix

Test environment

Fedora 23 x64, Oracle JDK 1.8.91

Learning

N/A, Bug fix