You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2021/05/21 19:01:12 UTC

[netbeans] branch master updated: In cpplite project, when reading configuration, an empty string should not be considered a valid configuration.

This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 72c23af  In cpplite project, when reading configuration, an empty string should not be considered a valid configuration.
     new 3db00e6  Merge pull request #2904 from jlahoda/fix-missing-run-in-cpplite
72c23af is described below

commit 72c23afb1ce18b36d4ba4f41f3ab5ac281e342f4
Author: Jan Lahoda <jl...@netbeans.org>
AuthorDate: Sun Apr 18 08:35:35 2021 +0200

    In cpplite project, when reading configuration, an empty string should not be considered a valid configuration.
---
 .../src/org/netbeans/modules/cpplite/project/BuildConfiguration.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpplite/cpplite.project/src/org/netbeans/modules/cpplite/project/BuildConfiguration.java b/cpplite/cpplite.project/src/org/netbeans/modules/cpplite/project/BuildConfiguration.java
index f67e7e2..b77f74a 100644
--- a/cpplite/cpplite.project/src/org/netbeans/modules/cpplite/project/BuildConfiguration.java
+++ b/cpplite/cpplite.project/src/org/netbeans/modules/cpplite/project/BuildConfiguration.java
@@ -63,7 +63,7 @@ public class BuildConfiguration {
         Map<String, List<List<String>>> commands = new HashMap<>();
         for (String command : new String[] {ActionProvider.COMMAND_BUILD, ActionProvider.COMMAND_CLEAN, ActionProvider.COMMAND_RUN}) {
             String cmd = prefs.get(command, null);
-            if (cmd == null) {
+            if (cmd == null || cmd.isEmpty()) {
                 continue;
             }
             commands.put(command, Utils.decode(cmd));

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists