diff options
author | Simon Rettberg | 2017-04-21 17:12:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-21 17:12:54 +0200 |
commit | 188e7a1c189a10288df1c76640b14ea8a48a7786 (patch) | |
tree | c196957610c2ff37e78df1bc8a11cb26bb8ea568 | |
parent | [RemoteReboot] Apply code formatting (diff) | |
download | tmlite-bwlp-188e7a1c189a10288df1c76640b14ea8a48a7786.tar.gz tmlite-bwlp-188e7a1c189a10288df1c76640b14ea8a48a7786.tar.xz tmlite-bwlp-188e7a1c189a10288df1c76640b14ea8a48a7786.zip |
[CreateLdapConfig] Check for null in escapeBashString
-rw-r--r-- | src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java b/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java index 39b8f40..30f1935 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java +++ b/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java @@ -308,6 +308,8 @@ public class CreateLdapConfig extends AbstractTask private String escapeBashString( String str ) { + if ( str == null ) + return ""; if ( str.indexOf( '\'' ) != -1 ) { str = str.replace( "'", "'\"'\"'" ); } |