JRE: Fixed an error where a local variable was used before it was set.