Skip to content

Commit

Permalink
bug(Android):HummerNode保留旧构造方法(可能外部有使用),namespace为空导致异常。
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOnlyone authored and bbssyyuui committed Mar 8, 2023
1 parent 5299917 commit 4200c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.didi.hummer.core.util.DebugUtil;
import com.didi.hummer.core.util.HMLog;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

Expand All @@ -21,7 +22,7 @@

public class DebugConfig {

private final Map<String, Debuggable> configs = new ConcurrentHashMap<>();
private final Map<String, Debuggable> configs = new HashMap<>();

private DebugConfig() {
// no op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public class HummerNode implements Serializable {
private List<HummerNode> children = new LinkedList<>();


public HummerNode(@NonNull HMBase linkView, @Nullable String nodeId) {
this(linkView, null, nodeId);
}

public HummerNode(@NonNull HMBase linkView, @Nullable String namespace, @Nullable String nodeId) {
this.linkView = linkView;
this.id = TextUtils.isEmpty(nodeId) ? createNodeId() : nodeId;
Expand Down

0 comments on commit 4200c5c

Please sign in to comment.