diff --git a/src/fr/inrialpes/exmo/align/service/CacheImpl.java b/src/fr/inrialpes/exmo/align/service/CacheImpl.java index 49e8e08064c3c2b7f4a512da079781dbbf3fc0e5..2a02c1c32348c5f7a92dfba834481e8c868de7b6 100644 --- a/src/fr/inrialpes/exmo/align/service/CacheImpl.java +++ b/src/fr/inrialpes/exmo/align/service/CacheImpl.java @@ -456,7 +456,7 @@ public class CacheImpl implements Cache { "VALUES ('" + quote(id) + "','" + quote(tag) + "','" + quote(s_method) + "')"; st.executeUpdate(query); } - + for( Enumeration e = alignment.getElements() ; e.hasMoreElements(); ){ Cell c = (Cell)e.nextElement(); String cellid = null; @@ -485,7 +485,7 @@ public class CacheImpl implements Cache { "VALUES ('" + quote(id) + "','" + quote(cellid) + "','" + quote(uri1) + "','" + quote(uri2) + "','" + quote(strength) + "','" + quote(sem) + "','" + quote(rel) + "')"; st.executeUpdate(query); } - if ( cellid != null && !cellid.equals("") ) { + if ( cellid != null && !cellid.equals("") && c.getExtensions() != null ) { // JE: I must now store all the extensions for( Enumeration e2 = c.getExtensions().getNames() ; e2.hasMoreElements() ; ){ String tag = (String)e2.nextElement();