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

Fix error: "this.coord1" is null #1501

Closed
3 of 13 tasks
ConfusedAlex opened this issue Aug 26, 2022 · 2 comments · Fixed by #1502
Closed
3 of 13 tasks

Fix error: "this.coord1" is null #1501

ConfusedAlex opened this issue Aug 26, 2022 · 2 comments · Fixed by #1502
Assignees
Labels
bug Something isn't working

Comments

@ConfusedAlex
Copy link

Describe the bug

Plugin cannot invoke dansplugins.factionsystem.objects.helper.GateCoord.getWorld() because this.coord1 is null

To Reproduce

I dont know what to do to reproduce. This error gets from constantly.

Expected behavior

No error

Screenshots or Logs

java.lang.NullPointerException: Cannot invoke "dansplugins.factionsystem.objects.helper.GateCoord.getWorld()" because "this.coord1" is null
	at dansplugins.factionsystem.objects.domain.Gate.save(Gate.java:98) ~[Medieval-Factions-4.7.0-SNAPSHOT.jar:?]
	at dansplugins.factionsystem.objects.domain.Faction.save(Faction.java:410) ~[Medieval-Factions-4.7.0-SNAPSHOT.jar:?]
	at dansplugins.factionsystem.data.PersistentData$LocalStorageService.saveFactions(PersistentData.java:1351) ~[Medieval-Factions-4.7.0-SNAPSHOT.jar:?]
	at dansplugins.factionsystem.data.PersistentData$LocalStorageService.save(PersistentData.java:1328) ~[Medieval-Factions-4.7.0-SNAPSHOT.jar:?]
	at dansplugins.factionsystem.utils.extended.Scheduler$1.run(Scheduler.java:50) ~[Medieval-Factions-4.7.0-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-123]
	at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-123]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1492) ~[paper-1.19.2.jar:git-Paper-123]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-123]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1416) ~[paper-1.19.2.jar:git-Paper-123]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[paper-1.19.2.jar:git-Paper-123]
	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-123]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

Java version

  • Java 8
  • Java 11
  • Java 16
  • Java 17

Plugin version

  • v4.1
  • v4.2
  • v4.3
  • v4.4
  • v4.5.x

Paper version

  • 1.16.x
  • 1.17.x
  • 1.18.x
  • 1.19.2
@dmccoystephenson dmccoystephenson added MF 4 bug Something isn't working labels Aug 26, 2022
@ConfusedAlex
Copy link
Author

There was a gate in the factions.json that didnt exist in the game. Deleted the gate in the json, now everything is working again.
Should this be closed?

@dmccoystephenson
Copy link
Member

I'm glad you found a solution :) It wouldn't hurt to throw a null check in there so that people don't experience the error in the console in the future, so we can leave this open.

@dmccoystephenson dmccoystephenson linked a pull request Aug 26, 2022 that will close this issue
@dmccoystephenson dmccoystephenson changed the title Cannot invoke "dansplugins.factionsystem.objects.helper.GateCoord.getWorld()" because "this.coord1" is null Fix error: 'Cannot invoke "dansplugins.factionsystem.objects.helper.GateCoord.getWorld()" because "this.coord1" is null' Sep 11, 2022
@dmccoystephenson dmccoystephenson changed the title Fix error: 'Cannot invoke "dansplugins.factionsystem.objects.helper.GateCoord.getWorld()" because "this.coord1" is null' Fix error: "this.coord1" is null Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants