Skip to content

Commit 3fd7f0b

Browse files
author
chengyitian
committed
AJ-455: check if originalColName is null or empty.
1 parent 0e864ad commit 3fd7f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/data/BasicTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void setColName (final List<String> colNames) {
129129
* @param newColName
130130
*/
131131
public void replaceColName(String originalColName, String newColName) {
132-
if (Objects.isNull(newColName) || Utils.isEmpty(newColName))
132+
if (Utils.isEmpty(originalColName) || Utils.isEmpty(newColName))
133133
throw new RuntimeException("The param 'newColName' cannot be null or empty.");
134134

135135
if (this.colNames.contains(newColName))

0 commit comments

Comments
 (0)