We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db40f7b commit 99de5e0Copy full SHA for 99de5e0
src/main/java/edu/harvard/iq/dataverse/DatasetAuthor.java
@@ -8,6 +8,8 @@
8
9
import java.util.Comparator;
10
11
+import org.apache.commons.lang3.StringUtils;
12
+
13
/**
14
*
15
* @author skraffmiller
@@ -81,8 +83,8 @@ public void setIdValue(String idValue) {
81
83
}
82
84
85
public boolean isEmpty() {
- return ( (affiliation==null || affiliation.getValue().trim().equals(""))
- && (name==null || name.getValue().trim().equals(""))
86
+ return ( (affiliation==null || StringUtils.isBlank(affiliation.getValue()))
87
+ && (name==null || StringUtils.isBlank(name.getValue()))
88
);
89
90
0 commit comments