Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

java.util.NoSuchElementException: List is empty.

Open
#11 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
kotlin
Domain
devtools

Research direction

Start with the stack-trace locations in BeatSaberReferenceManager.kt:112 and BeatSaberReferenceGeneratorAction.kt:27, then compare this report with issue #8. Reproduce the action in Rider 2024.3.3 or 2024.3.6 and verify that the empty-list case no longer raises java.util.NoSuchElementException.

Written by the indexing model from the issue text.

Description

Looks like the same exact exception as #8

Using the latest release of BSMT-Rider, occurs in Rider 2024.3.3 and 2024.3.6.

Unhandled exception in [ComponentManager(ProjectImpl@880266938), com.intellij.codeWithMe.ClientIdContextElementPrecursor@6eaf7bc0, CoroutineName(com.github.fernthedev.bsmt_rider.helpers.BeatSaberReferenceManager), Dispatchers.Default]

java.util.NoSuchElementException: List is empty.
	at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:221)
	at com.github.fernthedev.bsmt_rider.helpers.BeatSaberReferenceManager.askToAddReferences(BeatSaberReferenceManager.kt:112)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1$1.invokeSuspend(BeatSaberReferenceGeneratorAction.kt:27)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1$1.invoke(BeatSaberReferenceGeneratorAction.kt)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1$1.invoke(BeatSaberReferenceGeneratorAction.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.util.progress.ProgressPipeImpl.collectProgressUpdates(ProgressPipe.kt:43)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternalOld$2.invokeSuspend(PlatformTaskSupport.kt:157)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternalOld$2.invoke(PlatformTaskSupport.kt)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternalOld$2.invoke(PlatformTaskSupport.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport.withBackgroundProgressInternalOld(PlatformTaskSupport.kt:150)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport.access$withBackgroundProgressInternalOld(PlatformTaskSupport.kt:57)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternal$2.invokeSuspend(PlatformTaskSupport.kt:91)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternal$2.invoke(PlatformTaskSupport.kt)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport$withBackgroundProgressInternal$2.invoke(PlatformTaskSupport.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
	at com.intellij.openapi.progress.impl.PlatformTaskSupport.withBackgroundProgressInternal(PlatformTaskSupport.kt:89)
	at com.intellij.platform.ide.progress.TasksKt.withBackgroundProgress(tasks.kt:56)
	at com.intellij.platform.ide.progress.TasksKt.withBackgroundProgress(tasks.kt:31)
	at com.github.fernthedev.bsmt_rider.actions.BeatSaberReferenceGeneratorAction$actionPerformed$1.invokeSuspend(BeatSaberReferenceGeneratorAction.kt:26)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@880266938), com.intellij.codeWithMe.ClientIdContextElementPrecursor@6eaf7bc0, CoroutineName(com.github.fernthedev.bsmt_rider.helpers.BeatSaberReferenceManager), StandaloneCoroutine{Cancelled}@35397fca, Dispatchers.Default]
Dominant language
C#
Stars
25
Forks
5
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.