Skip to content

imp instance is null #4

@wendl4

Description

@wendl4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions