From f222451ec13acb014171a70a0ecdeebc07e9af3b Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Fri, 25 Jan 2019 11:02:21 +0100
Subject: [PATCH] OO-3799: no path to default quota

---
 src/main/java/org/olat/admin/quota/QuotaManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/admin/quota/QuotaManagerImpl.java b/src/main/java/org/olat/admin/quota/QuotaManagerImpl.java
index 2f52dfe954a..7d0f1757b77 100644
--- a/src/main/java/org/olat/admin/quota/QuotaManagerImpl.java
+++ b/src/main/java/org/olat/admin/quota/QuotaManagerImpl.java
@@ -527,7 +527,7 @@ public class QuotaManagerImpl implements QuotaManager, InitializingBean {
 
 	private String getDefaultQuotaIdentifier(String path) {
 		String identifier = QuotaConstants.IDENTIFIER_DEFAULT;
-		if(path.startsWith(QuotaConstants.IDENTIFIER_DEFAULT)) {
+		if(path == null || path.startsWith(QuotaConstants.IDENTIFIER_DEFAULT)) {
 			identifier = path;
 		} else if(path.startsWith("/cts/folders/BusinessGroup/")) {
 			identifier = QuotaConstants.IDENTIFIER_DEFAULT_GROUPS;
-- 
GitLab