Handle null pathElements gracefully in message passing API (#480)
In messages "List Resources Response" and "List Modules Response", if `pathElements` and `error` are both null, default to an empty list.
This commit is contained in:
1 parent
21aa44cfc4
commit
7da643fc8f
4 files changed
+86
-4
No files matched your search
@@ -451,6 +451,8 @@ The response to <<list-resources-request>>.
|
||||
If successful, `pathElements` is set.
|
||||
Otherwise, `error` is set.
|
||||
|
||||
If neither are set, `pathElements` default to an empty list.
|
||||
|
||||
[source,pkl]
|
||||
----
|
||||
/// A number identifying this request.
|
||||
@@ -507,6 +509,8 @@ The response to <<list-modules-request>>.
|
||||
If successful, `pathElements` is set.
|
||||
Otherwise, `error` is set.
|
||||
|
||||
If neither are set, `pathElements` default to an empty list.
|
||||
|
||||
[source,pkl]
|
||||
----
|
||||
/// A number identifying this request.
|
||||
|
||||
Reference in new issue
Block a user