Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3daef7d6 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- bug in alignement storage corrected (did not ensure that getExtensions returns something)

parent 5d6b0b3d
No related branches found
No related tags found
No related merge requests found
...@@ -456,7 +456,7 @@ public class CacheImpl implements Cache { ...@@ -456,7 +456,7 @@ public class CacheImpl implements Cache {
"VALUES ('" + quote(id) + "','" + quote(tag) + "','" + quote(s_method) + "')"; "VALUES ('" + quote(id) + "','" + quote(tag) + "','" + quote(s_method) + "')";
st.executeUpdate(query); st.executeUpdate(query);
} }
for( Enumeration e = alignment.getElements() ; e.hasMoreElements(); ){ for( Enumeration e = alignment.getElements() ; e.hasMoreElements(); ){
Cell c = (Cell)e.nextElement(); Cell c = (Cell)e.nextElement();
String cellid = null; String cellid = null;
...@@ -485,7 +485,7 @@ public class CacheImpl implements Cache { ...@@ -485,7 +485,7 @@ public class CacheImpl implements Cache {
"VALUES ('" + quote(id) + "','" + quote(cellid) + "','" + quote(uri1) + "','" + quote(uri2) + "','" + quote(strength) + "','" + quote(sem) + "','" + quote(rel) + "')"; "VALUES ('" + quote(id) + "','" + quote(cellid) + "','" + quote(uri1) + "','" + quote(uri2) + "','" + quote(strength) + "','" + quote(sem) + "','" + quote(rel) + "')";
st.executeUpdate(query); st.executeUpdate(query);
} }
if ( cellid != null && !cellid.equals("") ) { if ( cellid != null && !cellid.equals("") && c.getExtensions() != null ) {
// JE: I must now store all the extensions // JE: I must now store all the extensions
for( Enumeration e2 = c.getExtensions().getNames() ; e2.hasMoreElements() ; ){ for( Enumeration e2 = c.getExtensions().getNames() ; e2.hasMoreElements() ; ){
String tag = (String)e2.nextElement(); String tag = (String)e2.nextElement();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment