Skip to content

Commit 9714f94

Browse files
fix: avoid NPE
Signed-off-by: Andreas Reichel <[email protected]>
1 parent fb978ce commit 9714f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/sf/jsqlparser/statement/select/PlainSelect.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public List<LateralView> getLateralViews() {
207207
}
208208

209209
public void setLateralViews(Collection<LateralView> lateralViews) {
210-
if (this.lateralViews == null && lateralViews != null) {
210+
if (this.lateralViews == null) {
211211
this.lateralViews = new ArrayList<>();
212212
} else {
213213
this.lateralViews.clear();

0 commit comments

Comments
 (0)