Skip to content

Conversation

@rgra
Copy link
Contributor

@rgra rgra commented Aug 9, 2018

bundle.getBundleContext() will give an NPE (in Equinox) if the bundle can be found but is not active.
Would also be good to at least log the exception in debug mode to point to a possible problem.

bundle.getBundleContext() will give an NPE (in Equinox) if the bundle can be found but is not active.
Would also be good to at least log the exception in debug mode to point to a possible problem.
return null;
}
if (bundle.getState() != Bundle.ACTIVE) {
bundle.start();

Choose a reason for hiding this comment

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

is it me or the indentation is mixed, space and tabs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uh.... sorry, fixed. Was lazy and didn't edit it in the IDE but directly in GitHub and thought GitHub would be smart and tell me if indent uses the wrong characters. It doesn't.

@coheigea coheigea self-requested a review August 14, 2018 10:35
@coheigea
Copy link
Contributor

Looks good thanks

@coheigea coheigea merged commit b6d2db2 into apache:master Aug 14, 2018
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.

3 participants