Program: 44181
Project: 44181
Buggy source:
/** 
 * Adds a resource object to the request of the given type, which is always required
 * @param type the type of resource, all other params are optional dependent upon what this value is
 * @return this
 */
protected Instagram addResource(Type type,String value,float longitude,float lattitude,int distance,boolean exactMatch,String fourSquareLocation){
  ResourceParams parameterSet=newResourceParams();
switch (type) {
case USER:
    if (value == null) {
      throw new IllegalArgumentException("String_Node_Str");
    }
  parameterSet.set("String_Node_Str","String_Node_Str");
parameterSet.set("String_Node_Str",value);
break;
case TAG:
if (value == null) {
throw new IllegalArgumentException("String_Node_Str");
}
parameterSet.set("String_Node_Str","String_Node_Str");
parameterSet.set("String_Node_Str",value);
parameterSet.set("String_Node_Str",exactMatch);
break;
case AREA:
case LOCATION:
if (value == null || distance > 5000) {
throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
}
if (type == Type.LOCATION) {
parameterSet.set("String_Node_Str","String_Node_Str");
if (fourSquareLocation != null) {
parameterSet.set("String_Node_Str",fourSquareLocation);
}
}
 else {
parameterSet.set("String_Node_Str","String_Node_Str");
}
if (fourSquareLocation == null) {
parameterSet.set("String_Node_Str",lattitude);
parameterSet.set("String_Node_Str",longitude);
if (distance > 0) {
parameterSet.set("String_Node_Str",lattitude);
}
}
break;
case POPULAR:
parameterSet.set("String_Node_Str","String_Node_Str");
break;
}
return this;
}

Fixed version (ground truth):
/** 
 * Adds a resource object to the request of the given type, which is always required
 * @param type the type of resource, all other params are optional dependent upon what this value is
 * @return this
 */
protected Instagram addResource(Type type,String value,float longitude,float lattitude,int distance,boolean exactMatch,String fourSquareLocation){
  ResourceParams parameterSet=newResourceParams();
switch (type) {
case USER:
    if (value == null) {
      throw new IllegalArgumentException("String_Node_Str");
    }
  parameterSet.set("String_Node_Str","String_Node_Str");
parameterSet.set("String_Node_Str",value);
break;
case TAG:
if (value == null) {
throw new IllegalArgumentException("String_Node_Str");
}
parameterSet.set("String_Node_Str","String_Node_Str");
parameterSet.set("String_Node_Str",value);
parameterSet.set("String_Node_Str",exactMatch);
break;
case AREA:
case LOCATION:
if (distance > 5000) {
throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
}
if (type == Type.LOCATION) {
parameterSet.set("String_Node_Str","String_Node_Str");
if (fourSquareLocation != null) {
throw new UnsupportedOperationException("String_Node_Str" + "String_Node_Str");
}
}
 else {
parameterSet.set("String_Node_Str","String_Node_Str");
}
if (fourSquareLocation == null) {
parameterSet.set("String_Node_Str",lattitude);
parameterSet.set("String_Node_Str",longitude);
if (distance > 0) {
parameterSet.set("String_Node_Str",distance);
}
}
break;
case POPULAR:
parameterSet.set("String_Node_Str","String_Node_Str");
break;
}
return this;
}