Skip to content

Bug: llegalArgumentException: bound must be positive #205

@intersecato

Description

@intersecato

In which plugin has the error occurred?

FancyNpcs

What happened?

We have too many players and NPCs, so I'm not sure exactly what's causing this bug. However, it appeared recently, perhaps in this latest version.

In which software has the error occurred?

Paper

Plugin version

2.9.2

Server version

1.21.8

Relevant log output

[13:19:54] [FancyNpcs-ActionExecutor/WARN]: Exception in thread "FancyNpcs-ActionExecutor" java.lang.IllegalArgumentException: bound must be positive
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at java.base/java.util.Random.nextInt(Random.java:557)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.types.ExecuteRandomActionAction.getRandomIndex(ExecuteRandomActionAction.java:39)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.types.ExecuteRandomActionAction.execute(ExecuteRandomActionAction.java:30)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.executor.ActionExecutionContext.run(ActionExecutionContext.java:95)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.executor.ActionExecutionContext.runNext(ActionExecutionContext.java:110)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at FancyNpcs-2.9.2.jar//de.oliver.fancynpcs.api.actions.executor.ActionExecutor.lambda$execute$0(ActionExecutor.java:29)
[13:19:54] [FancyNpcs-ActionExecutor/WARN]: 	at java.base/java.lang.VirtualThread.run(VirtualThread.java:309)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: MediumShould be done for the next regular versionStatus: PendingWaiting for someone to work onType: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions