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

imp instance is null #4

Open
wendl4 opened this issue Oct 6, 2023 · 0 comments
Open

imp instance is null #4

wendl4 opened this issue Oct 6, 2023 · 0 comments

Comments

@wendl4
Copy link

wendl4 commented Oct 6, 2023

Hello @adaerr ,

First of all thank you for the plugin and its maintenance. Today when I wanted to compile and run the latest version from master I got the following message (I am using Eclipse and project was imported as existing maven project)

ed9f4508084fb41ee068584205b1a5082a2318d5

After inspecting what is wrong I found out that imp parameter is for some reason null therefore on line 401

if (imp.getRoi() != null)

exception is thrown as it is unable to find method getRoi() of null.

Looking deeper into it, I found out this is probably related to ImageJ2 and ImageJ1 incompatibility which can be solved by using ImageJ2 (which is used for this plugin) and imagej-legacy bridge that allows backward compatibility.

So I opened the pom.xml file and added new dependency

<dependency>
	<groupId>net.imagej</groupId>
	<artifactId>imagej-legacy</artifactId>
</dependency>

to the list of dependencies and this solved the problem.

I am not sure how to make a pull request for this repository so I would like to ask you to do this change (add this dependency) so other people who want to use the plugin will be able to use it without solving this problem.

Many thanks 🙏

Samuel

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

No branches or pull requests

1 participant