Revision 30358 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/table/gui/TableModelProperties.java

View differences:

TableModelProperties.java
93 93
     */
94 94
    public int getRowCount() {
95 95
       try {
96
    	   if (table.getModelo()==null)
97
    		   return 0;
96 98
	        return table.getModelo().getRecordset().getFieldCount();
97 99
	    } catch (ReadDriverException e) {
98 100
	        NotificationManager.addError("No se pudo leer la informaci?n de la tabla", e);
......
108 110
            return new Boolean(visibles.get(rowIndex));
109 111
        } else if (columnIndex == 1) {
110 112
        	try {
113
        		 if (table.getModelo()==null)
114
          		   return "error!";
111 115
                return table.getModelo().getRecordset().getFieldName(rowIndex);
112 116
            } catch (ReadDriverException e) {
113 117
                NotificationManager.addError("Error accediendo al nombre del campo", e);

Also available in: Unified diff