yada icon indicating copy to clipboard operation
yada copied to clipboard

NPE when navigating to a route rather than to a direct file

Open armincerf opened this issue 6 years ago • 0 comments

Example in Edge:

  [:edge.yada.ig/resources :my.app/font-awesome]
  {:path "META-INF/resources/webjars/font-awesome/4.6.3/"}

Then in vhost ["font-awesome/" #ig/ref :falcon.dashboard/font-awesome]

Then visit /font-awesome/.

Throws

    at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
    at java.util.regex.Matcher.reset(Matcher.java:309)
    at java.util.regex.Matcher.(Matcher.java:229)
    at java.util.regex.Pattern.matcher(Pattern.java:1093)
    at clojure.core$re_matcher.invokeStatic(core.clj:4856)
    at clojure.core$re_find.invokeStatic(core.clj:4898)
    at clojure.core$re_find.invoke(core.clj:4898)
    at ring.util.mime_type$filename_ext.invokeStatic(mime_type.clj:101)
    at ring.util.mime_type$filename_ext.invoke(mime_type.clj:98)
    at ring.util.mime_type$ext_mime_type.invokeStatic(mime_type.clj:111)
    at ring.util.mime_type$ext_mime_type.invoke(mime_type.clj:104)
    at ring.util.mime_type$ext_mime_type.invokeStatic(mime_type.clj:108)
    at ring.util.mime_type$ext_mime_type.invoke(mime_type.clj:104)
    at yada.resources.resources_resource$new_resources_resource$fn__37942.invoke(resources_resource.clj:33)
    at yada.interceptors$select_representation$apply_if_fn__34575.invoke(interceptors.clj:202)
    at yada.interceptors$select_representation.invokeStatic(interceptors.clj:204)
    at yada.interceptors$select_representation.invoke(interceptors.clj:192)
    at manifold.deferred$eval14029$chain___14050.invoke(deferred.clj:859)
    at manifold.deferred$eval14029$chain___14050.doInvoke(deferred.clj:883)
    at clojure.lang.RestFn.applyTo(RestFn.java:151)
    at clojure.core$apply.invokeStatic(core.clj:669)
    at clojure.core$apply.invoke(core.clj:660)
    at manifold.deferred$eval14029$chain___14050$fn__14054.invoke(deferred.clj:888)
    at manifold.deferred.Listener.onSuccess(deferred.clj:219)
    at manifold.deferred.Deferred$fn__13828.invoke(deferred.clj:381)
    at clojure.lang.AFn.run(AFn.java:22)
    at io.aleph.dirigiste.Executor$Worker$1.run(Executor.java:62)
    at manifold.executor$thread_factory$reify__13207$f__13208.invoke(executor.clj:44)
    at clojure.lang.AFn.run(AFn.java:22)
    at java.lang.Thread.run(Thread.java:748)```

armincerf avatar Feb 28 '19 10:02 armincerf