Commit 2a29ac40 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed to use a default history type in case an exception occurs.JM-87


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@732 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9e04e5e8
......@@ -220,7 +220,8 @@ public class HistoryStrategy {
try {
setType(Type.valueOf(typeName));
}
catch (IllegalArgumentException ie) {
catch (Exception e) {
Log.warn("Error setting history type from string. Using default type.", e);
if (parent != null) {
setType(Type.defaulType);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment