Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when building a child context with combined map #28

Closed
bckfnn opened this issue Jul 1, 2012 · 1 comment
Closed

NPE when building a child context with combined map #28

bckfnn opened this issue Jul 1, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@bckfnn
Copy link

bckfnn commented Jul 1, 2012

Using 0.2.1. snaphot, I get a NPE when I create child2 since the extendedContext of a child is Null.

    Context root = Context.newBuilder("root").build();
    System.out.println(root.get("this"));
    Context child1 = Context.newBuilder(root, "child1").build();
    System.out.println(child1.get("this"));
    Context child2 = Context.newBuilder(root, "child2").combine(new HashMap<String, Object>()).build();

The use case is a #each like iterator that also add odd/even flags to the namespace.

@jknack
Copy link
Owner

jknack commented Jul 1, 2012

fixed

@jknack jknack closed this as completed Jul 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants