From dd50856494be31341ea031bae07c9d15bc455aca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20David?=
 <Jerome.David@univ-grenoble-alpes.fr>
Date: Tue, 26 Jun 2012 12:28:01 +0000
Subject: [PATCH] return 0 is value is null in annotation

---
 src/fr/inrialpes/exmo/ontowrap/Annotation.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fr/inrialpes/exmo/ontowrap/Annotation.java b/src/fr/inrialpes/exmo/ontowrap/Annotation.java
index eead02c2..709423d0 100644
--- a/src/fr/inrialpes/exmo/ontowrap/Annotation.java
+++ b/src/fr/inrialpes/exmo/ontowrap/Annotation.java
@@ -48,7 +48,7 @@ public class Annotation {
     }
     
     public int hashCode() {
-	return value.hashCode();
+	return value==null?0:value.hashCode();
     }
     
     public boolean equals(Object o) {
-- 
GitLab