diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 12:21:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 16:39:21 +0100 |
commit | f8ce2e049c54bd68e5afa1632b8b43e43695cddc (patch) | |
tree | d0e130fc333b47cecfe4574182bf93dda276698d /wizards/com | |
parent | d2927e38a85e695662cfb08e5dd49bfb1b7c8b85 (diff) |
coverity#983635 Uncaught exception
Change-Id: I4be3600af6ee97ba9f962edf9723c04d89b161e4
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/db/DBMetaData.java | 6 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/query/Finalizer.java | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/db/DBMetaData.java b/wizards/com/sun/star/wizards/db/DBMetaData.java index b788f84eb2be..4106e7594071 100644 --- a/wizards/com/sun/star/wizards/db/DBMetaData.java +++ b/wizards/com/sun/star/wizards/db/DBMetaData.java @@ -762,14 +762,12 @@ public class DBMetaData } } - - - public boolean supportsQueriesInFrom() + public boolean supportsQueriesInFrom() throws SQLException { return m_connectionTools.getDataSourceMetaData().supportsQueriesInFrom(); } - public String suggestName( final int i_objectType, final String i_baseName ) throws IllegalArgumentException + public String suggestName( final int i_objectType, final String i_baseName ) throws IllegalArgumentException, SQLException { return m_connectionTools.getObjectNames().suggestName( i_objectType, i_baseName ); } diff --git a/wizards/com/sun/star/wizards/query/Finalizer.java b/wizards/com/sun/star/wizards/query/Finalizer.java index 853d478cb4f9..9d6673e6b416 100644 --- a/wizards/com/sun/star/wizards/query/Finalizer.java +++ b/wizards/com/sun/star/wizards/query/Finalizer.java @@ -21,6 +21,7 @@ import com.sun.star.awt.XRadioButton; import com.sun.star.awt.XTextComponent; import com.sun.star.lang.IllegalArgumentException; import com.sun.star.sdb.CommandType; +import com.sun.star.sdbc.SQLException; import com.sun.star.uno.AnyConverter; import com.sun.star.wizards.common.HelpIds; import com.sun.star.wizards.common.Helper; @@ -147,6 +148,11 @@ public class Finalizer exception.printStackTrace(System.err); return PropertyNames.EMPTY_STRING; } + catch (SQLException exception) + { + exception.printStackTrace(System.err); + return PropertyNames.EMPTY_STRING; + } } private String getTitle() |