This last post is mostly informational. Thanks to Kirk, for helping me realize the solution.The issue at hand is having a value of <null> in a field's value and needing to assign that field value to a variable of the field's datatype. My null pointer was ocurring when trying to assign a <null> to a Long Integer, String, etc. variable.I tested for field value and the field varType, then assigned the appropriate value (for my situation) to the variable.
if(iFeature != null){
for(int i = 0; i < recordCount; i++){
for(int j = 0; j < fieldCount; j++){
tempValue = iFeature.getValue(j);
tempVarType = iFeature.getFields().getField(j).getVarType();
// check field valueType for Long Integer (3), Double (5), or String (8)
// and convert <null> data to appropriate data type value
if((tempValue==null)&&(tempVarType==3)){
recordsetfields = "0";
} else if((tempValue==null)&&(tempVarType==5)){
recordsetfields = "0.0";
} else if((tempValue==null)&&(tempVarType==8)){
recordsetfields = "";
} else {
recordsetfields = iFeature.getValue(j).toString();
}
}
... etc