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

Tiny fix, NullPointerException in FeatureComputationPanel/Model #147

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

maarzt
Copy link
Contributor

@maarzt maarzt commented Apr 1, 2022

I get a NullPointerExcpetion when I execute Mastodon.main(...) from IntelliJ.
The exception is thrown at this line:

The reason is FeatureComputationModel.getFeatureSpec(...). It returns null if no feature is installed. It's probably better for this method to return a empty list rather the the null value, if there are no features found.

@tinevez You probably didn't came across this problem, because you the features installed in your project.

…stalled

This prevents a NullPointerException, when Mastodon.main() is executed.
@tinevez tinevez merged commit f4d5267 into mastodon-sc:master Apr 1, 2022
@maarzt
Copy link
Contributor Author

maarzt commented Apr 1, 2022

That was fast 👍 ❤️

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.

2 participants