Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Exception in thread "main" java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.collections.CollectionsKt__IterablesKt.collectionSizeOrDefault, parameter $receiver
  2. at kotlin.collections.CollectionsKt__IterablesKt.collectionSizeOrDefault(Iterables.kt)
  3. at kotlin.collections.CollectionsKt.collectionSizeOrDefault(Unknown Source)
  4. at stacks.server.scratchpad.categorization.DumpSearchDataKt.main(dumpSearchData.kt:66)
  5. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  7. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  8. at java.lang.reflect.Method.invoke(Method.java:483)
  9. at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
  10.  
  11. val vendorSnippets = uniqueVendors.take(10).map {vendor ->
  12. val results = google.search(vendor.vendor)
  13. Thread.sleep(1000)
  14. val snippets = results.items.map {it.snippet}
  15. val vs: VendorSnippets = VendorSnippets(vendor, snippets)
  16. print("*")
  17. vs
  18. }.toList()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement