Skip to content
Snippets Groups Projects
Commit d0a801f0 authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

detect the absence of # in rdf:resource attribute value

parent 1ad3a665
No related branches found
No related tags found
1 merge request!14Resolve "Detect the absence of # in rdf:ressource values"
Pipeline #1117 passed
......@@ -204,7 +204,14 @@ public abstract class CimXMLHandler extends SAXXMLHandler {
String resource = attribs.getValue( CimConstants.qualifiedRdfResource );
if( resource != null ) {
int p = resource.indexOf( "#" );
if( p != -1 ) {
if( p == -1 ) {
AbstractRiseClipseConsole.getConsole().error(
"The rdf:resource value of "
+ eReference.getContainerClass().getSimpleName()
+ "." + eReference.getName()
+ " is missing '#'" );
}
else {
// Ignore the URI before the # because we don't handle it
// TODO: handle it!
resource = resource.substring( p );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment