Program: 14318
Project: 14318
Buggy source:
@Override public void track(AnalyticsTracker.Stat stat,Map<String,?> properties){
  if (mNosaraClient == null) {
    return;
  }
  Map<String,Object> predefinedEventProperties=new HashMap<String,Object>();
  String eventName;
switch (stat) {
case APPLICATION_STARTED:
    eventName="String_Node_Str";
  break;
case APPLICATION_OPENED:
eventName="String_Node_Str";
break;
case APPLICATION_CLOSED:
eventName="String_Node_Str";
break;
case THEMES_ACCESSED_THEMES_BROWSER:
eventName="String_Node_Str";
break;
case THEMES_CHANGED_THEME:
eventName="String_Node_Str";
break;
case THEMES_PREVIEWED_SITE:
eventName="String_Node_Str";
break;
case READER_ACCESSED:
eventName="String_Node_Str";
break;
case READER_OPENED_ARTICLE:
eventName="String_Node_Str";
break;
case READER_LIKED_ARTICLE:
eventName="String_Node_Str";
break;
case READER_REBLOGGED_ARTICLE:
eventName="String_Node_Str";
break;
case READER_INFINITE_SCROLL:
eventName="String_Node_Str";
break;
case READER_FOLLOWED_READER_TAG:
eventName="String_Node_Str";
break;
case READER_UNFOLLOWED_READER_TAG:
eventName="String_Node_Str";
break;
case READER_LOADED_TAG:
eventName="String_Node_Str";
break;
case READER_LOADED_FRESHLY_PRESSED:
eventName="String_Node_Str";
break;
case READER_COMMENTED_ON_ARTICLE:
eventName="String_Node_Str";
break;
case READER_FOLLOWED_SITE:
eventName="String_Node_Str";
break;
case READER_BLOCKED_BLOG:
eventName="String_Node_Str";
break;
case READER_BLOG_PREVIEW:
eventName="String_Node_Str";
break;
case READER_TAG_PREVIEW:
eventName="String_Node_Str";
break;
case EDITOR_CREATED_POST:
eventName="String_Node_Str";
break;
case EDITOR_SAVED_DRAFT:
eventName="String_Node_Str";
break;
case EDITOR_CLOSED_POST:
eventName="String_Node_Str";
break;
case EDITOR_ADDED_PHOTO_VIA_LOCAL_LIBRARY:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_ADDED_PHOTO_VIA_WP_MEDIA_LIBRARY:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_PUBLISHED_POST:
eventName="String_Node_Str";
break;
case EDITOR_UPDATED_POST:
eventName="String_Node_Str";
break;
case EDITOR_SCHEDULED_POST:
eventName="String_Node_Str";
break;
case EDITOR_PUBLISHED_POST_WITH_PHOTO:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_PUBLISHED_POST_WITH_VIDEO:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_PUBLISHED_POST_WITH_CATEGORIES:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_PUBLISHED_POST_WITH_TAGS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_TAPPED_BLOCKQUOTE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_BOLD:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_IMAGE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_ITALIC:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_LINK:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_MORE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_STRIKETHROUGH:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_UNDERLINE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case NOTIFICATIONS_ACCESSED:
eventName="String_Node_Str";
break;
case NOTIFICATIONS_OPENED_NOTIFICATION_DETAILS:
eventName="String_Node_Str";
break;
case NOTIFICATION_APPROVED:
eventName="String_Node_Str";
break;
case NOTIFICATION_UNAPPROVED:
eventName="String_Node_Str";
break;
case NOTIFICATION_REPLIED_TO:
eventName="String_Node_Str";
break;
case NOTIFICATION_TRASHED:
eventName="String_Node_Str";
break;
case NOTIFICATION_FLAGGED_AS_SPAM:
eventName="String_Node_Str";
break;
case NOTIFICATION_LIKED:
eventName="String_Node_Str";
break;
case NOTIFICATION_UNLIKED:
eventName="String_Node_Str";
break;
case OPENED_POSTS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_PAGES:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_COMMENTS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_VIEW_SITE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_VIEW_ADMIN:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_MEDIA_LIBRARY:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_SETTINGS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case CREATED_ACCOUNT:
eventName="String_Node_Str";
break;
case SHARED_ITEM:
eventName="String_Node_Str";
break;
case ADDED_SELF_HOSTED_SITE:
eventName="String_Node_Str";
break;
case SIGNED_IN:
eventName="String_Node_Str";
break;
case SIGNED_INTO_JETPACK:
eventName="String_Node_Str";
break;
case PERFORMED_JETPACK_SIGN_IN_FROM_STATS_SCREEN:
eventName="String_Node_Str";
break;
case STATS_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_INSIGHTS_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_PERIOD_DAYS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_PERIOD_WEEKS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_PERIOD_MONTHS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_PERIOD_YEARS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_VIEW_ALL_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_SINGLE_POST_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_OPENED_WEB_VERSION:
eventName="String_Node_Str";
break;
case STATS_TAPPED_BAR_CHART:
eventName="String_Node_Str";
break;
case STATS_SCROLLED_TO_BOTTOM:
eventName="String_Node_Str";
break;
case STATS_SELECTED_INSTALL_JETPACK:
eventName="String_Node_Str";
break;
case PUSH_NOTIFICATION_RECEIVED:
eventName="String_Node_Str";
break;
case SUPPORT_OPENED_HELPSHIFT_SCREEN:
eventName="String_Node_Str";
break;
case SUPPORT_SENT_REPLY_TO_SUPPORT_MESSAGE:
eventName="String_Node_Str";
break;
case LOGIN_FAILED:
eventName="String_Node_Str";
break;
case LOGIN_FAILED_TO_GUESS_XMLRPC:
eventName="String_Node_Str";
break;
default :
eventName=null;
break;
}
if (eventName == null) {
AppLog.w(AppLog.T.STATS,"String_Node_Str" + stat.name() + "String_Node_Str");
return;
}
final String user;
final TracksClient.NosaraUserType userType;
if (mWpcomUserName != null) {
user=mWpcomUserName;
userType=TracksClient.NosaraUserType.WPCOM;
}
 else {
if (getAnonID() == null) {
user=generateNewAnonID();
}
 else {
user=getAnonID();
}
userType=TracksClient.NosaraUserType.ANON;
}
final JSONObject propertiesToJSON;
if (properties != null && properties.size() > 0) {
propertiesToJSON=new JSONObject(properties);
for (String key : predefinedEventProperties.keySet()) {
try {
if (propertiesToJSON.has(key)) {
AppLog.w(AppLog.T.STATS,"String_Node_Str" + key + "String_Node_Str"+ "String_Node_Str");
AppLog.w(AppLog.T.STATS,"String_Node_Str" + propertiesToJSON.get(key).toString() + "String_Node_Str"+ predefinedEventProperties.get(key).toString());
}
 else {
propertiesToJSON.put(key,predefinedEventProperties.get(key));
}
}
 catch (JSONException e) {
AppLog.e(AppLog.T.STATS,"String_Node_Str",e);
}
}
}
 else {
propertiesToJSON=new JSONObject(predefinedEventProperties);
}
if (propertiesToJSON.length() > 0) {
mNosaraClient.track(EVENTS_PREFIX + eventName,propertiesToJSON,user,userType);
}
 else {
mNosaraClient.track(EVENTS_PREFIX + eventName,user,userType);
}
}

Fixed version (ground truth):
@Override public void track(AnalyticsTracker.Stat stat,Map<String,?> properties){
  if (mNosaraClient == null) {
    return;
  }
  Map<String,Object> predefinedEventProperties=new HashMap<String,Object>();
  String eventName;
switch (stat) {
case APPLICATION_STARTED:
    eventName="String_Node_Str";
  break;
case APPLICATION_OPENED:
eventName="String_Node_Str";
break;
case APPLICATION_CLOSED:
eventName="String_Node_Str";
break;
case THEMES_ACCESSED_THEMES_BROWSER:
eventName="String_Node_Str";
break;
case THEMES_CHANGED_THEME:
eventName="String_Node_Str";
break;
case THEMES_PREVIEWED_SITE:
eventName="String_Node_Str";
break;
case READER_ACCESSED:
eventName="String_Node_Str";
break;
case READER_OPENED_ARTICLE:
eventName="String_Node_Str";
break;
case READER_LIKED_ARTICLE:
eventName="String_Node_Str";
break;
case READER_REBLOGGED_ARTICLE:
eventName="String_Node_Str";
break;
case READER_INFINITE_SCROLL:
eventName="String_Node_Str";
break;
case READER_FOLLOWED_READER_TAG:
eventName="String_Node_Str";
break;
case READER_UNFOLLOWED_READER_TAG:
eventName="String_Node_Str";
break;
case READER_LOADED_TAG:
eventName="String_Node_Str";
break;
case READER_LOADED_FRESHLY_PRESSED:
eventName="String_Node_Str";
break;
case READER_COMMENTED_ON_ARTICLE:
eventName="String_Node_Str";
break;
case READER_FOLLOWED_SITE:
eventName="String_Node_Str";
break;
case READER_BLOCKED_BLOG:
eventName="String_Node_Str";
break;
case READER_BLOG_PREVIEW:
eventName="String_Node_Str";
break;
case READER_TAG_PREVIEW:
eventName="String_Node_Str";
break;
case EDITOR_CREATED_POST:
eventName="String_Node_Str";
break;
case EDITOR_SAVED_DRAFT:
eventName="String_Node_Str";
break;
case EDITOR_CLOSED_POST:
eventName="String_Node_Str";
break;
case EDITOR_ADDED_PHOTO_VIA_LOCAL_LIBRARY:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_ADDED_PHOTO_VIA_WP_MEDIA_LIBRARY:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_PUBLISHED_POST:
eventName="String_Node_Str";
break;
case EDITOR_UPDATED_POST:
eventName="String_Node_Str";
break;
case EDITOR_SCHEDULED_POST:
eventName="String_Node_Str";
break;
case EDITOR_PUBLISHED_POST_WITH_PHOTO:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_PUBLISHED_POST_WITH_VIDEO:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_PUBLISHED_POST_WITH_CATEGORIES:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_PUBLISHED_POST_WITH_TAGS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str",true);
break;
case EDITOR_TAPPED_BLOCKQUOTE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_BOLD:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_IMAGE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_ITALIC:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_LINK:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_MORE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_STRIKETHROUGH:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case EDITOR_TAPPED_UNDERLINE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case NOTIFICATIONS_ACCESSED:
eventName="String_Node_Str";
break;
case NOTIFICATIONS_OPENED_NOTIFICATION_DETAILS:
eventName="String_Node_Str";
break;
case NOTIFICATION_APPROVED:
eventName="String_Node_Str";
break;
case NOTIFICATION_UNAPPROVED:
eventName="String_Node_Str";
break;
case NOTIFICATION_REPLIED_TO:
eventName="String_Node_Str";
break;
case NOTIFICATION_TRASHED:
eventName="String_Node_Str";
break;
case NOTIFICATION_FLAGGED_AS_SPAM:
eventName="String_Node_Str";
break;
case NOTIFICATION_LIKED:
eventName="String_Node_Str";
break;
case NOTIFICATION_UNLIKED:
eventName="String_Node_Str";
break;
case OPENED_POSTS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_PAGES:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_COMMENTS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_VIEW_SITE:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_VIEW_ADMIN:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_MEDIA_LIBRARY:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case OPENED_SETTINGS:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case CREATED_ACCOUNT:
eventName="String_Node_Str";
break;
case SHARED_ITEM:
eventName="String_Node_Str";
break;
case ADDED_SELF_HOSTED_SITE:
eventName="String_Node_Str";
break;
case SIGNED_IN:
eventName="String_Node_Str";
break;
case SIGNED_INTO_JETPACK:
eventName="String_Node_Str";
break;
case PERFORMED_JETPACK_SIGN_IN_FROM_STATS_SCREEN:
eventName="String_Node_Str";
break;
case STATS_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_INSIGHTS_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_PERIOD_DAYS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_PERIOD_WEEKS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_PERIOD_MONTHS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_PERIOD_YEARS_ACCESSED:
eventName="String_Node_Str";
predefinedEventProperties.put("String_Node_Str","String_Node_Str");
break;
case STATS_VIEW_ALL_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_SINGLE_POST_ACCESSED:
eventName="String_Node_Str";
break;
case STATS_OPENED_WEB_VERSION:
eventName="String_Node_Str";
break;
case STATS_TAPPED_BAR_CHART:
eventName="String_Node_Str";
break;
case STATS_SCROLLED_TO_BOTTOM:
eventName="String_Node_Str";
break;
case STATS_SELECTED_INSTALL_JETPACK:
eventName="String_Node_Str";
break;
case PUSH_NOTIFICATION_RECEIVED:
eventName="String_Node_Str";
break;
case SUPPORT_OPENED_HELPSHIFT_SCREEN:
eventName="String_Node_Str";
break;
case SUPPORT_SENT_REPLY_TO_SUPPORT_MESSAGE:
eventName="String_Node_Str";
break;
case LOGIN_FAILED:
eventName="String_Node_Str";
break;
case LOGIN_FAILED_TO_GUESS_XMLRPC:
eventName="String_Node_Str";
break;
case ME_ACCESSED:
eventName="String_Node_Str";
break;
case MY_SITE_ACCESSED:
eventName="String_Node_Str";
break;
default :
eventName=null;
break;
}
if (eventName == null) {
AppLog.w(AppLog.T.STATS,"String_Node_Str" + stat.name() + "String_Node_Str");
return;
}
final String user;
final TracksClient.NosaraUserType userType;
if (mWpcomUserName != null) {
user=mWpcomUserName;
userType=TracksClient.NosaraUserType.WPCOM;
}
 else {
if (getAnonID() == null) {
user=generateNewAnonID();
}
 else {
user=getAnonID();
}
userType=TracksClient.NosaraUserType.ANON;
}
final JSONObject propertiesToJSON;
if (properties != null && properties.size() > 0) {
propertiesToJSON=new JSONObject(properties);
for (String key : predefinedEventProperties.keySet()) {
try {
if (propertiesToJSON.has(key)) {
AppLog.w(AppLog.T.STATS,"String_Node_Str" + key + "String_Node_Str"+ "String_Node_Str");
AppLog.w(AppLog.T.STATS,"String_Node_Str" + propertiesToJSON.get(key).toString() + "String_Node_Str"+ predefinedEventProperties.get(key).toString());
}
 else {
propertiesToJSON.put(key,predefinedEventProperties.get(key));
}
}
 catch (JSONException e) {
AppLog.e(AppLog.T.STATS,"String_Node_Str",e);
}
}
}
 else {
propertiesToJSON=new JSONObject(predefinedEventProperties);
}
if (propertiesToJSON.length() > 0) {
mNosaraClient.track(EVENTS_PREFIX + eventName,propertiesToJSON,user,userType);
}
 else {
mNosaraClient.track(EVENTS_PREFIX + eventName,user,userType);
}
}