Expand my Community achievements bar.

SOLVED

Bug in ExtendedChatPod

Avatar

Level 2
Hi. In my application, if I attempt to set the
historyFontSize property in the MXML tag for the ExtendedChatPod
component, it will throw an error on initialization. If I set the
property via AS at some later point, it works fine. Here's the
error thrown:



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

at com.adobe.rtc.pods::SimpleChat/set
historyFontSize()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\pods\SimpleChat.as:265]

at
mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:3595]

at
mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:3493]

at
com.adobe.rtc.session::ConnectSessionContainer/buildChild()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\session\ConnectSessionContainer.as:239]

at
com.adobe.rtc.session::ConnectSessionContainer/onSynchronizationChange()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\session\ConnectSessionContainer.as:279]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at
com.adobe.rtc.session::ConnectSession/checkManagerSync()[C:\work\main\connect\cocomoPlayer10\src\com\adobe\rtc\session\ConnectSession.as:481]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()



1 Accepted Solution

Avatar

Correct answer by
Former Community Member
Hi Rick,



This issue has been fixed and It will be updated in the next
version of SDK drop. It was because the chat model wasn't
synchronized by the time we set historyFontSize property via mxml.

Thanks again for reporting.

Regards

Hironmay Basu

View solution in original post

4 Replies

Avatar

Former Community Member
Hi Rick,

Seems like a bug. We will get it fixed and update it in the
next drop of SDK.



Thanks

Hironmay Basu

Avatar

Correct answer by
Former Community Member
Hi Rick,



This issue has been fixed and It will be updated in the next
version of SDK drop. It was because the chat model wasn't
synchronized by the time we set historyFontSize property via mxml.

Thanks again for reporting.

Regards

Hironmay Basu

Avatar

Level 2
Happy to help. While you're in there looking at the
SimpleChat pod code, I'd recommend styling it such that all of the
UI components use the same font face/size by default. I also
attached an extended version of SimpleChat that includes an
"unsubscribe" method that properly cleans up a subscription in a
way that allows reconnection. You may wish to incorporate this
behavior into your classes in Cocomo as well.

Avatar

Former Community Member
Hi Rick,



We will look into the styling suggestion. Regarding
unsubscribe, we are evaluting the best way to uniformly unsubscribe
all cocomo components so that user can dynamically switch rooms in
cocomo.



Thanks

Hironmay Basu
The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----