This document was generated from CDN thread
Created by: santosh dandey on 24-11-2009 03:19:51 AM
HI,
public ... getConfig(String name, ElementAPI elementAPI, VoiceElementConfig voiceElementConfig){
<strong style="font-weight: bold;">VoiceElementConfig.AudioGroup initialAudioGroup = VoiceElementConfig.new AudioGroup("initial_audio_group", true);
}
I'm getting a null-pointer exception at this. The API has returned null value for voiceElementConfig. why does the api sends a null value for VoiceElementConfig?.
Subject: RE: Null Pointer Exception thrown for DynamicElement Configuration
Replied by: Janine Graves on 24-11-2009 03:27:20 AM
When you are creating the initialAudioGroup here, you should be using the object voiceElementConfig.new (lower case v), on the right hand side of the equal sign, NOT the class VoiceElementConfig.new (upper case V)
Change this: VoiceElementConfig.AudioGroup initialAudioGroup = VoiceElementConfig.new AudioGroup("initial_audio_group", true);
to this: VoiceElementConfig.AudioGroup initialAudioGroup = voiceElementConfig.new AudioGroup("initial_audio_group", true);
Janine
www.TrainingTheExperts.com