From 40f33d57b50acf73a4466b29415cbe6c32d0dfeb Mon Sep 17 00:00:00 2001
From: strentini <none@none>
Date: Mon, 2 Apr 2012 18:05:08 +0200
Subject: [PATCH] OO-137 : fix NPE in add artefact wizard (caused by
 textboxlistcomponent)

---
 .../core/gui/components/textboxlist/TextBoxListComponent.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/java/org/olat/core/gui/components/textboxlist/TextBoxListComponent.java b/src/main/java/org/olat/core/gui/components/textboxlist/TextBoxListComponent.java
index 9ccf558d565..12759094308 100644
--- a/src/main/java/org/olat/core/gui/components/textboxlist/TextBoxListComponent.java
+++ b/src/main/java/org/olat/core/gui/components/textboxlist/TextBoxListComponent.java
@@ -150,6 +150,9 @@ public abstract class TextBoxListComponent extends FormBaseComponentImpl {
 
 		String inputId = "textboxlistinput" + getFormDispatchId();
 		String cmd = ureq.getParameter(inputId);
+		if(cmd == null){
+			return;
+		}
 		String[] splitted = cmd.split(",");
 		ArrayList<String> cleanedItemValues = new ArrayList<String>();
 		for (String item : splitted) {
-- 
GitLab