react-native-unimodules icon indicating copy to clipboard operation
react-native-unimodules copied to clipboard

java.lang.NullPointerException: Attempt to invoke interface method 'void org.unimodules.interfaces.taskManager.TaskServiceInterface.setTaskManager(org.unimodules.interfaces.taskManager.TaskManagerInterface, java.lang.String, java.lang.String)' on a null object reference

Open roei133 opened this issue 5 years ago • 4 comments

I did "expo eject" with bare and now I got this error and I don't know how to fix it. I delete all my use of "expo-task-manager" but it still gives me this error. help, please.

roei133 avatar Feb 03 '20 10:02 roei133

Same. Did anyone solved it?

mihaelatd96 avatar Feb 18 '20 10:02 mihaelatd96

Same here

Frigooo avatar Feb 18 '20 11:02 Frigooo

Hey, sorry it took us so long to respond to this issue. Let me ask, how does your MainApplication.java look like? The part that I am interested about may look like this:

  private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(
    new BasePackageList().getPackageList(),
    null
  );

Is the second argument null in your cases? Or is it an empty list?

sjchmiela avatar Feb 18 '20 11:02 sjchmiela

Hey, I have the same problem, this is the line you are talking about :

private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(new BasePackageList().getPackageList(), Arrays.<SingletonModule>asList());

I do have the same error, someone fixed it ?

PierreSachot avatar Apr 14 '20 16:04 PierreSachot