diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/parameter/StandardParameterContext.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/parameter/StandardParameterContext.java index ecd8cfa7ed..157c09f24a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/parameter/StandardParameterContext.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/parameter/StandardParameterContext.java @@ -172,7 +172,7 @@ public class StandardParameterContext implements ParameterContext { // We know that the Parameters have the same name, since this is what the Descriptor's hashCode & equality are based on. The only thing that may be different // is the description. And since the proposed Parameter does not have a Description, we want to use whatever is currently set. - return oldParameter == null ? null : oldParameter.getDescriptor(); + return oldParameter == null ? descriptor : oldParameter.getDescriptor(); } @Override diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/parameter/TestStandardParameterContext.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/parameter/TestStandardParameterContext.java index 6008e636bc..67101634c0 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/parameter/TestStandardParameterContext.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/test/java/org/apache/nifi/parameter/TestStandardParameterContext.java @@ -125,7 +125,7 @@ public class TestStandardParameterContext { abcParam = context.getParameter("abc").get(); assertEquals(abcDescriptor, abcParam.getDescriptor()); assertEquals("Updated Again", abcParam.getDescriptor().getDescription()); - assertNull(abcParam.getValue()); + assertEquals("321", abcParam.getValue()); } @Test