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 with class hint on let binding with nil value #1409

Open
2 tasks
borkdude opened this issue Oct 25, 2022 · 0 comments
Open
2 tasks

NPE with class hint on let binding with nil value #1409

borkdude opened this issue Oct 25, 2022 · 0 comments

Comments

@borkdude
Copy link
Collaborator

borkdude commented Oct 25, 2022

Repro:

(require '[clojure.java.io :as io])

(java.nio.file.Files/write
 (.toPath (io/file "/tmp/foo.zip"))
 ;; smallest possible zip file
 (byte-array (into [80 75 05 06] (repeat 18 0))) (into-array java.nio.file.OpenOption []))

(let [^ClassLoader x nil]
  (with-open [fs (java.nio.file.FileSystems/newFileSystem
                  (.toPath (io/file "/tmp/foo.zip")) x)]
    fs))
  • Should be fixed in SCI
  • Unzipping in deps.clj should also be tested as babashka script
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

1 participant