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

[konnected] fixes servlet registration #5764

Merged
merged 2 commits into from
Jun 28, 2019
Merged

Conversation

kaikreuzer
Copy link
Member

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@martinvw martinvw requested a review from a team June 26, 2019 20:06
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

Thanks. One question.

} catch (KonnectedWebHookFail e) {
logger.trace("there was an error adding the thing handler to the servlet: {}", e.getMessage());
}
servlet.add(thingHandler);
Copy link
Contributor

Choose a reason for hiding this comment

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

If the registration of the servlet will fail during activation of the factory we will face a NPE here. Should we handle that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Valid point. I've added a null check.

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@TravisBuddy
Copy link

Travis tests were successful

Hey @kaikreuzer,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@cweitkamp cweitkamp merged commit 591be8e into openhab:master Jun 28, 2019
knikhilwiz pushed a commit to knikhilwiz/openhab2-addons that referenced this pull request Jul 3, 2019
Fixes openhab#5749

Signed-off-by: Kai Kreuzer <kai@openhab.org>
@wborn wborn added this to the 2.5 milestone Jul 30, 2019
ne0h pushed a commit to ne0h/openhab-addons that referenced this pull request Sep 15, 2019
Fixes openhab#5749

Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Maximilian Hess <mail@ne0h.de>
Pshatsillo pushed a commit to Pshatsillo/openhab-addons that referenced this pull request Dec 8, 2019
Fixes openhab#5749

Signed-off-by: Kai Kreuzer <kai@openhab.org>
tmrobert8 pushed a commit to tmrobert8/openhab-addons that referenced this pull request Jan 21, 2020
Fixes openhab#5749

Signed-off-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Tim Roberts <timmarkroberts@gmail.com>
@kaikreuzer kaikreuzer deleted the konnected branch November 13, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[konnected] HTTP endpoint isn't created and binding fails
5 participants