Skip navigation
Currently Being Moderated

null object reference in AudioPublisher after stop()

Apr 10, 2012 5:31 AM

Tags: #stop #lccs #audiopublisher

if i'm publishing audio with AudioPublisher and then call stop(), i get a null object reference, i've pasted the stack trace below.  the offending line of code is in AudioPublisher:976:


if ( _mic.codec.toLowerCase() == SoundCodec.NELLYMOSER.toLowerCase() )


_mic.codec is null.  i guess the codec gets set to null somehow after the publishing is stopped?


i really don't want to monkey patch AudioPublisher.  is there something i'm doing wrong? or some kind of workaround to avoid this?




TypeError: Error #1009: Cannot access a property or method of a null object reference.

          at com.adobe.rtc.collaboration::AudioPublisher/onStreamDelete()[/src/com .adobe.lccs_v220/libs/player10.3/src/com/adobe/rtc/collaboration/Audio]



          at com.adobe.rtc.sharedManagers::StreamManager/onItemRetract()[/src/com. adobe.lccs_v220/libs/player10.3/src/com/adobe/rtc/sharedManagers/Strea]



          at com.adobe.rtc.sharedModel::CollectionNode/ emRetraction()[/src/com.adobe.lccs_v220/libs/player10.3/src/com/adobe/rtc/sharedMo del/]

          at com.adobe.rtc.messaging.manager::MessageManager/ emRetraction()[/src/com.adobe.lccs_v220/libs/player10.3/src/com/adobe/rtc/messagin g/manager/]

          at com.adobe.rtc.session.managers::SessionManagerBase/receiveItemRetract ion()[/src/com.adobe.lccs_v220/libs/player10.3/src/com/adobe/rtc/sessi on/managers/]


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points