Skip to content

Commit

Permalink
Prevent css parsing if any style textfield is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Oct 28, 2024
1 parent 88d9111 commit d70e1a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2017 Gluon and/or its affiliates.
* Copyright (c) 2016, 2024, Gluon and/or its affiliates.
* Copyright (c) 2012, 2014, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
Expand Down Expand Up @@ -337,7 +337,7 @@ public final Node getNode() {
@Override
public Object getValue() {
String value;
if (propertyTf.getText().isEmpty() && valueTf.getText().isEmpty()) {
if (propertyTf.getText().isEmpty() || valueTf.getText().isEmpty()) {
return ""; //NOI18N
} else {
String propertyVal = EditorUtils.getPlainString(propertyTf.getText()).trim();
Expand Down

0 comments on commit d70e1a1

Please sign in to comment.