pie-flavor / Pieconomy

An economy plugin for Sponge utilizing items as currency.
https://ore.spongepowered.org/pie_flavor/pieconomy
MIT License
3 stars 1 forks source link

flavor.pie.pieconomy.runtime.kotlin.UninitializedPropertyAccessException #23

Open LemADEC opened 4 years ago

LemADEC commented 4 years ago

As of Pieconomy 0.6.2 with SpongeForge 1.12.2-2838-7.2.4-RC4057, an exception is reported when a player logins:

[10:16:55] [Server thread/INFO] [minecraft/DedicatedServer]: LemADEC joined the game
[10:16:55] [Server thread/ERROR] [Sponge]: The Scheduler tried to run the task pieconomy-S-13 owned by Plugin{id=pieconomy, name=Pieconomy, version=0.6.2, description=An economy plugin that uses items as currency., authors=[pie_flavor], source=/home/wwm/beta/./plugins/Pieconomy-0.6.2.jar}, but an error occured.
flavor.pie.pieconomy.runtime.kotlin.UninitializedPropertyAccessException: lateinit property channel has not been initialized
>       at flavor.pie.pieconomy.Pieconomy.getChannel(Pieconomy.kt:56) ~[Pieconomy.class:?]
>       at flavor.pie.pieconomy.Pieconomy$join$$inlined$Task$lambda$1.accept(Pieconomy.kt:198) ~[Pieconomy$join$$inlined$Task$lambda$1.class:?]
>       at flavor.pie.pieconomy.Pieconomy$join$$inlined$Task$lambda$1.accept(Pieconomy.kt:39) ~[Pieconomy$join$$inlined$Task$lambda$1.class:?]
>       at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:197) ~[SchedulerBase.class:1.12.2-2838-7.2.4-RC4057]
>       at org.spongepowered.common.scheduler.SyncScheduler.executeTaskRunnable(SyncScheduler.java:74) ~[SyncScheduler.class:1.12.2-2838-7.2.4-RC4057]
>       at org.spongepowered.common.scheduler.SchedulerBase.startTask(SchedulerBase.java:188) ~[SchedulerBase.class:1.12.2-2838-7.2.4-RC4057]
>       at org.spongepowered.common.scheduler.SchedulerBase.processTask(SchedulerBase.java:174) ~[SchedulerBase.class:1.12.2-2838-7.2.4-RC4057]
>       at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707) [?:1.8.0_252]
>       at org.spongepowered.common.scheduler.SchedulerBase.runTick(SchedulerBase.java:112) [SchedulerBase.class:1.12.2-2838-7.2.4-RC4057]
>       at org.spongepowered.common.scheduler.SyncScheduler.tick(SyncScheduler.java:47) [SyncScheduler.class:1.12.2-2838-7.2.4-RC4057]
>       at org.spongepowered.common.scheduler.SpongeScheduler.tickSyncScheduler(SpongeScheduler.java:189) [SpongeScheduler.class:1.12.2-2838-7.2.4-RC4057]
>       at org.spongepowered.mod.SpongeMod.onTick(SpongeMod.java:441) [SpongeMod.class:1.12.2-2838-7.2.4-RC4057]
>       at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_414_SpongeMod_onTick_ServerTickEvent.invoke(.dynamic) [?:?]
>       at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) [ASMEventHandler.class:?]
>       at net.minecraftforge.fml.common.eventhandler.EventBus.forgeBridge$post(EventBus.java:1256) [EventBus.class:?]
>       at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:1206) [EventBus.class:?]
>       at net.minecraftforge.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:279) [FMLCommonHandler.class:?]
>       at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:657) [MinecraftServer.class:?]
>       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
>       at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

I don't remember such issue with SpongeForge 1.12.2-2838-7.2.3, so it could be related to recent changes on their side.