Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W-16491237: NullPointer Exception when using the extension client ins… #14046

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
*/
package org.mule.runtime.module.extension.internal.runtime.execution;

import static java.lang.System.arraycopy;
import static org.apache.commons.lang3.ArrayUtils.isEmpty;
import static org.mule.runtime.api.util.collection.Collectors.toImmutableMap;
import static org.mule.runtime.core.api.lifecycle.LifecycleUtils.initialiseIfNeeded;
import static org.mule.runtime.module.extension.internal.loader.parser.java.MuleExtensionAnnotationParser.getParamNames;
import static org.mule.runtime.module.extension.internal.loader.parser.java.MuleExtensionAnnotationParser.toMap;
import static org.mule.runtime.module.extension.internal.runtime.execution.MethodArgumentResolverUtils.isConfigParameter;
Expand All @@ -25,6 +24,10 @@
import static org.mule.runtime.module.extension.internal.util.ParameterGroupUtils.hasParameterGroupAnnotation;
import static org.mule.runtime.module.extension.internal.util.ParameterGroupUtils.isParameterGroupShowInDsl;

import static java.lang.System.arraycopy;

import static org.apache.commons.lang3.ArrayUtils.isEmpty;

import org.mule.metadata.java.api.JavaTypeLoader;
import org.mule.runtime.api.component.location.ComponentLocation;
import org.mule.runtime.api.lifecycle.Initialisable;
Expand Down Expand Up @@ -404,6 +407,9 @@ private Map<Parameter, ParameterGroupArgumentResolver<? extends Object>> getPara

@Override
public void initialise() throws InitialisationException {
// The dependencies for this bean are injected through the lifecycle utils. It is also initialized through it.
// That's why we have to initialized the extension client if needed, as the extension client is not singleton.
initialiseIfNeeded(extensionsClient);
initArgumentResolvers();
}

Expand Down