From 4a351f72ea5c083e4cf5893b937246beafc224d8 Mon Sep 17 00:00:00 2001
From: Luz-Maria Priego <lpriego2003@hotmail.com>
Date: Tue, 27 May 2014 16:04:31 +0000
Subject: [PATCH] bug fixed in recordOntology

---
 src/fr/inrialpes/exmo/align/service/SQLCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fr/inrialpes/exmo/align/service/SQLCache.java b/src/fr/inrialpes/exmo/align/service/SQLCache.java
index 4379a383..9e9c4639 100644
--- a/src/fr/inrialpes/exmo/align/service/SQLCache.java
+++ b/src/fr/inrialpes/exmo/align/service/SQLCache.java
@@ -609,7 +609,7 @@ public class SQLCache extends VolatilCache implements Cache {
 	} else {
 		String sformname = "";
 		if ( res.getString("formname") != null ) sformname = res.getString("formname");
-	    if ( onto != null && res.getString("formname").equals("") ) { // JE: checktest
+		if ( onto != null && sformname.equals("") ) { // JE: checktest
 		logger.debug( "Updating ontology {} with formalism {}", suri, onto.getFormalism() );
     	if ( onto.getFormURI() != null ) sformuri = onto.getFormURI().toString();	
 		query = "UPDATE ontology SET formname="+quote(onto.getFormalism())+", formuri="+quote(sformuri)+" WHERE uri="+quote(suri)+";";
-- 
GitLab