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

NullPointer on call to keys of empty def-map-type #22

Closed
savagematt opened this issue Jul 10, 2014 · 1 comment
Closed

NullPointer on call to keys of empty def-map-type #22

savagematt opened this issue Jul 10, 2014 · 1 comment

Comments

@savagematt
Copy link
Contributor

(def-map-type
    TestMap [m]
    (get [this k default-value]
         (get m k default-value))

    (assoc [this key value]
        (throw (UnsupportedOperationException.)))

    (dissoc [this key]
            (throw (UnsupportedOperationException.)))

    (keys [this]
          (keys m)))

(keys (TestMap. {}))
@savagematt
Copy link
Contributor Author

Unable to reproduce on head. Think this might have been fixed some time between 0.3.4 and now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants