Revision 10164 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableNumericFieldOperations.java

View differences:

TableNumericFieldOperations.java
136 136

  
137 137
			if (indices.cardinality() == 1){
138 138
				try {
139
					int type = table.getModel().getModelo().getRecordset().getFieldType(indices.nextSetBit(0));
139
					int index=indices.nextSetBit(0);
140
					if (table.getModel().getModelo().getRecordset().getFieldCount()<index+1)
141
						return false;
142
					int type = table.getModel().getModelo().getRecordset().getFieldType(index);
140 143
					if ((type == Types.BIGINT) ||
141 144
							(type == Types.DECIMAL) ||
142 145
							(type == Types.DOUBLE) ||

Also available in: Unified diff