jomarko commented on code in PR #3371:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3371#discussion_r2627807864


##########
packages/stunner-editors/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime/src/main/java/org/kie/workbench/common/stunner/kogito/client/services/WorkItemDefinitionStandaloneClientService.java:
##########
@@ -158,7 +169,7 @@ private Promise<Collection<WorkItemDefinition>> 
presetWorkItemsLoader(final Coll
     private Promise<Collection<WorkItemDefinition>> workItemsLoader(final 
String path,
                                                                     final 
Collection<WorkItemDefinition> loaded) {
         int lastDirIndex = path.lastIndexOf('/');
-        final String directory = (lastDirIndex >= 0) ? path.substring(0, 
lastDirIndex) + "/" : path;
+        final String directory = (lastDirIndex >= 0) ? path.substring(0, 
lastDirIndex) + "/" : "";

Review Comment:
   added, but keep in mind, I am not author of this code



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to