diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2013-08-27 13:59:29 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2013-08-27 14:46:35 +0200 |
commit | 1b8876bf555a36baf60b8819542f522f7ed7b691 (patch) | |
tree | 74f6c532b69c0cf4b1c881a83ad66623a64aab3c /src/nodetree_tree_odbc.erl | |
parent | fix call to get_session_pid with binary arguments (diff) |
fix build of Parents list in #pubsub_node
Diffstat (limited to '')
-rw-r--r-- | src/nodetree_tree_odbc.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nodetree_tree_odbc.erl b/src/nodetree_tree_odbc.erl index 469be35d5..1cc45cfb5 100644 --- a/src/nodetree_tree_odbc.erl +++ b/src/nodetree_tree_odbc.erl @@ -362,9 +362,13 @@ raw_to_node(Host, [Node, Parent, Type, NodeIdx]) -> StdOpts, DbOpts); _ -> [] end, + Parents = case Parent of + <<>> -> []; + _ -> [Parent] + end, #pubsub_node{nodeid = {Host, Node}, - parents = [Parent], + parents = Parents, id = NodeIdx, type = Type, options = Options}. % @spec (NodeRecord) -> ok | {error, Reason} |