GH-358 Fixd NPE in flux FunctionWebUtils

added tests

Resolves #358
This commit is contained in:
Oleg Zhurakousky
2019-04-29 16:07:56 +02:00
parent f16a2c76cf
commit d9582a9867
3 changed files with 39 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ public final class FunctionWebUtils {
String name = path;
String[] splitPath = path.split("/");
Function<Object, Object> function = null;
for (int i = 0; i < splitPath.length || function != null; i++) {
for (int i = 0; i < splitPath.length && functionForGet == null; i++) {
String element = splitPath[i];
if (builder.length() > 0) {
builder.append("/");