From 74e052af668ecab5992e007bd5acb16313563387 Mon Sep 17 00:00:00 2001 From: Tobias Neitzel Date: Mon, 6 May 2024 21:41:40 +0200 Subject: [PATCH] Fix invalid cast --- src/eu/tneitzel/rmg/internal/ArgumentHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eu/tneitzel/rmg/internal/ArgumentHandler.java b/src/eu/tneitzel/rmg/internal/ArgumentHandler.java index a55e1f9..2908775 100644 --- a/src/eu/tneitzel/rmg/internal/ArgumentHandler.java +++ b/src/eu/tneitzel/rmg/internal/ArgumentHandler.java @@ -351,8 +351,8 @@ public Object[] getCallArguments() { try { - String[] args = (String[])RMGOption.CALL_ARGUMENTS.require(); - return PluginSystem.getArgumentArray(args); + List argList = RMGOption.CALL_ARGUMENTS.require(); + return PluginSystem.getArgumentArray(argList.toArray(new String[0])); } catch (RequirementException e)