Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WebThing] If WebThing network connection is crashed, WebThing will not be reconnected. #10579

Merged
merged 3 commits into from
May 9, 2021

Conversation

grro
Copy link
Contributor

@grro grro commented Apr 25, 2021

This is a bug fix for the new WebThing binding.

It turned out that a WebThing will not be reconnected, if the WebThing network connection is crashed. The reason for this is the uninitialized variable instance variable webThingURI. Due to the fact that this variable is null the reconnect code fails.

This merge request includes the changes to fix this.

Furthermore unnecessary NonNull annotations has been removed

Signed-off-by: Gregor Roth [email protected]

grro and others added 3 commits April 26, 2021 06:42
Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
…connected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
@wborn wborn added the bug An unexpected problem or unintended behavior of an add-on label Apr 26, 2021
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fwolter fwolter merged commit 8a21f9b into openhab:main May 9, 2021
@fwolter fwolter changed the title [WebThing] binding bugfix: If WebThing network connection is crashed, WebThing will not be reconnected. [WebThing] If WebThing network connection is crashed, WebThing will not be reconnected. May 9, 2021
@fwolter fwolter added this to the 3.1 milestone May 9, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
…ot be reconnected. (openhab#10579)

* Unnecessary NonNull annotations removed

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* Bugfix  "If network connection is interrupted, WebThing will not be reconnected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* webThingURI will be loaded in a lazy way

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
Signed-off-by: John Marshall <[email protected]>
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this pull request Jul 13, 2021
…ot be reconnected. (openhab#10579)

* Unnecessary NonNull annotations removed

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* Bugfix  "If network connection is interrupted, WebThing will not be reconnected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* webThingURI will be loaded in a lazy way

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
frederictobiasc pushed a commit to frederictobiasc/openhab-addons that referenced this pull request Oct 26, 2021
…ot be reconnected. (openhab#10579)

* Unnecessary NonNull annotations removed

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* Bugfix  "If network connection is interrupted, WebThing will not be reconnected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* webThingURI will be loaded in a lazy way

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
…ot be reconnected. (openhab#10579)

* Unnecessary NonNull annotations removed

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* Bugfix  "If network connection is interrupted, WebThing will not be reconnected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* webThingURI will be loaded in a lazy way

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
…ot be reconnected. (openhab#10579)

* Unnecessary NonNull annotations removed

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* Bugfix  "If network connection is interrupted, WebThing will not be reconnected." Due to the variable webThingURI is unset, re connection fails

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>

* webThingURI will be loaded in a lazy way

Signed-off-by: Gregor Roth <[email protected]>
Signed-off-by: gregor roth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants