NullPointerException for form variable as business key

I have created 3 form variables in Start Event action and set one variable as business key

	// Get all process variables
	final Map<String, Object> variables = delegateExecution.getVariables();

	final long number = (long) variables.get("number");
	final long number1 = (long) variables.get("value1");
	final long number2 = (long) variables.get("value2");

But, when I tried to access it using getVariables()… I’m getting NullPointerException error!

Is this a limitation at Camunda BPM ? How I can make use one of the form variable as business key ? Any suggestions…

@jvm in cockpit, for that process instance are you able to view those variables which you posted during starting the process instance?

Yes. I entered the values and got the error on console.

can you provide the stack trace of the exception? with less details it’s difficult to identify the root cause