Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-13359: Added support for error objects of an event payload to be other than string. #4071

Merged
merged 1 commit into from
Apr 5, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,11 @@ else if (dict instanceof HashMap)
krollData.remove(TiC.PROPERTY_CODE);
}
hashValue = krollData.get(TiC.EVENT_PROPERTY_ERROR);
if (hashValue != null) {
message = hashValue.toString();
if (hashValue instanceof String) {
message = (String) hashValue;
krollData.remove(TiC.EVENT_PROPERTY_ERROR);
} else {
Log.w(TAG, "DEPRECATION WARNING: The error object of an event payload must be of type string. The capability to use other types will be removed in a future version.", Log.DEBUG_MODE);
}
hashValue = krollData.get(TiC.EVENT_PROPERTY_SOURCE);
if (hashValue instanceof KrollProxy) {
Expand Down