From bb7472efabe10b768eaed355a28d1bc2c93631ad Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 15 Jan 2021 17:59:22 +0100 Subject: [PATCH] Fixed bug in list building. --- src/fr/devinsy/statoolinfos/htmlize/charts/ChabuUtils.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/charts/ChabuUtils.java b/src/fr/devinsy/statoolinfos/htmlize/charts/ChabuUtils.java index fde78fb..82b9644 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/charts/ChabuUtils.java +++ b/src/fr/devinsy/statoolinfos/htmlize/charts/ChabuUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020 Christian Pierre MOMON + * Copyright (C) 2020-2021 Christian Pierre MOMON * * This file is part of StatoolInfos, simple service statistics tool. * @@ -613,7 +613,10 @@ public class ChabuUtils target.append("'"); target.append(","); } - target.removeLast(); + if (!source.isEmpty()) + { + target.removeLast(); + } target.append("]"); result = target.toString();