Signed-off-by:Roland Häder <roland@mxchange.org>
*/
package org.mxchange.jcore.model.swing.contact;
+import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.text.MessageFormat;
import javax.swing.table.TableModel;
// Get manager
ManageableDatabase manager = (ManageableDatabase) this.getClient().getManager();
- // Deligate this call to contact manager
- return manager.size();
+ try {
+ // Deligate this call to contact manager
+ return manager.size();
+ } catch (final IOException ex) {
+ // Log warning
+ this.getLogger().catching(ex);
+
+ // Return zero
+ return 0;
+ }
}
@Override