Re: [Asterisk-java-users] Converting ManagerResponse to ExtensionStateResponse
Brought to you by:
srt
From: Maciek T. <mlo...@gm...> - 2007-07-20 11:54:44
|
Hi, David Roden wrote: >Find out what resp's type really is and work from there. maybe I do not understand the question but the type of resp variable is ExtensionStateResponse conn.SendActrion(action) returns variable that type is ManagerResponse. I've made some experiment: function as follows: public void ConvTest() { ManagerResponse resp1= new ManagerResponse(); ExtensionStateResponse resp2=new ExtensionStateResponse(); resp2=(ExtensionStateResponse)resp1; } doesn't log classes cast problems, but it throws null-pointer exception. I think it's a bug in asterisk-java -- Pozdrawiam Maciek Tokarski |