line 46 contains totalDuration += track.duration, track is most likely null
Stacktrace:
java.lang.NullPointerException
at me.melijn.melijnbot.commands.music.QueueCommand.execute(QueueCommand.kt:46)
at me.melijn.melijnbot.commands.music.QueueCommand$execute$1.invokeSuspend(QueueCommand.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Steps to reproduce are unknown
line 46 contains
totalDuration += track.duration
, track is most likely nullStacktrace: java.lang.NullPointerException at me.melijn.melijnbot.commands.music.QueueCommand.execute(QueueCommand.kt:46) at me.melijn.melijnbot.commands.music.QueueCommand$execute$1.invokeSuspend(QueueCommand.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)