Fix Bug 1139139/1139225 NPE during setParam