File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/org/culturegraph/mf/stream/pipe Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .culturegraph .mf .stream .pipe ;
17
17
18
+ import org .apache .commons .lang .StringUtils ;
18
19
import org .culturegraph .mf .framework .DefaultStreamPipe ;
19
20
import org .culturegraph .mf .framework .StreamReceiver ;
20
21
import org .culturegraph .mf .framework .annotations .Description ;
@@ -76,7 +77,7 @@ public void endEntity() {
76
77
@ Override
77
78
public void literal (final String name , final String value ) {
78
79
final int index = name .indexOf (LANGUAGE_MARKER );
79
- if (name .charAt (0 )==REFERENCE_MARKER ) {
80
+ if (StringUtils . isNotEmpty ( name ) && name .charAt (0 )==REFERENCE_MARKER ) {
80
81
getReceiver ().startEntity (name .substring (1 ));
81
82
getReceiver ().literal (RDF_REFERENCE , value );
82
83
getReceiver ().endEntity ();
You can’t perform that action at this time.
0 commit comments