aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateUserData.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-05-07 21:42:23 +0000
committerAdam Frisby2008-05-07 21:42:23 +0000
commit5843f595a723cd37c6b95eac8e74f9d3586fff53 (patch)
tree0966fd8bed80042e14b49cfbf63da704017414d8 /OpenSim/Data/NHibernate/NHibernateUserData.cs
parent* Added Obsolete() tag to IClientAPI.OutPacket. (diff)
downloadopensim-SC-5843f595a723cd37c6b95eac8e74f9d3586fff53.zip
opensim-SC-5843f595a723cd37c6b95eac8e74f9d3586fff53.tar.gz
opensim-SC-5843f595a723cd37c6b95eac8e74f9d3586fff53.tar.bz2
opensim-SC-5843f595a723cd37c6b95eac8e74f9d3586fff53.tar.xz
* Fixed some compiler warnings
* Fixed prebuild.xml to remove DB4o references (more compiler warnings)
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateUserData.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateUserData.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs
index 491cb2a..e680840 100644
--- a/OpenSim/Data/NHibernate/NHibernateUserData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs
@@ -91,7 +91,7 @@ namespace OpenSim.Data.NHibernate
91 using(ISession session = factory.OpenSession()) { 91 using(ISession session = factory.OpenSession()) {
92 session.Load(typeof(UserProfileData), LLUUID.Zero); 92 session.Load(typeof(UserProfileData), LLUUID.Zero);
93 } 93 }
94 } catch (ObjectNotFoundException e) { 94 } catch (ObjectNotFoundException) {
95 // yes, we know it's not there, but that's ok 95 // yes, we know it's not there, but that's ok
96 } catch (ADOException e) { 96 } catch (ADOException e) {
97 Match m = RE.Match(e.ToString()); 97 Match m = RE.Match(e.ToString());
@@ -109,7 +109,8 @@ namespace OpenSim.Data.NHibernate
109 using(ISession session = factory.OpenSession()) { 109 using(ISession session = factory.OpenSession()) {
110 user = session.Load(typeof(UserProfileData), uuid) as UserProfileData; 110 user = session.Load(typeof(UserProfileData), uuid) as UserProfileData;
111 } 111 }
112 } catch (Exception e) {} 112 // BUG: CATCHALL IS BAD.
113 } catch (Exception) {}
113 114
114 return (user != null); 115 return (user != null);
115 } 116 }