Revision 47841 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.downloader/org.gvsig.downloader.swing/org.gvsig.downloader.swing.impl/src/main/java/org/gvsig/downloader/swing/impl/config/DownloaderConfigPanelImpl.java

View differences:

DownloaderConfigPanelImpl.java
85 85
        
86 86
        @Override
87 87
        public Object getValueAt(int rowIndex, int columnIndex) {
88
            if( rowIndex<0 || this.services==null || rowIndex>=this.services.size()) {
88
            try {
89
                if (rowIndex < 0 || this.services == null || rowIndex >= this.services.size()) {
90
                    return null;
91
                }
92
                DownloaderAuthenticationConfig service = this.services.get(rowIndex);
93
                switch (columnIndex) {
94
                    case 0:
95
                        return service.getServiceUrl();
96
                    case 1:
97
                        return service.getFactory().getProviderName();
98
                    default:
99
                        return null;
100
                }
101
            } catch (Exception ex) {
89 102
                return null;
90 103
            }
91
            DownloaderAuthenticationConfig service = this.services.get(rowIndex);
92
            switch(columnIndex) {
93
                case 0:
94
                    return service.getServiceUrl();
95
                case 1:
96
                    return service.getFactory().getProviderName();
97
                default:
98
                    return null;
99
            }
100 104
        }
101 105

  
102 106
        private DownloaderAuthenticationConfig getConfig(int row) {

Also available in: Unified diff