{"action":"created","issue":{"url":"https://api.github.com/repos/puniverse/quasar/issues/229","repository_url":"https://api.github.com/repos/puniverse/quasar","labels_url":"https://api.github.com/repos/puniverse/quasar/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/puniverse/quasar/issues/229/comments","events_url":"https://api.github.com/repos/puniverse/quasar/issues/229/events","html_url":"https://github.com/puniverse/quasar/issues/229","id":182224958,"number":229,"title":"fiber.get() in another fiber cause java.lang.NullPointerException","user":{"login":"tigerMoon","id":9305625,"avatar_url":"https://avatars.githubusercontent.com/u/9305625?v=3","gravatar_id":"","url":"https://api.github.com/users/tigerMoon","html_url":"https://github.com/tigerMoon","followers_url":"https://api.github.com/users/tigerMoon/followers","following_url":"https://api.github.com/users/tigerMoon/following{/other_user}","gists_url":"https://api.github.com/users/tigerMoon/gists{/gist_id}","starred_url":"https://api.github.com/users/tigerMoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tigerMoon/subscriptions","organizations_url":"https://api.github.com/users/tigerMoon/orgs","repos_url":"https://api.github.com/users/tigerMoon/repos","events_url":"https://api.github.com/users/tigerMoon/events{/privacy}","received_events_url":"https://api.github.com/users/tigerMoon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-11T10:07:35Z","updated_at":"2016-10-17T09:11:10Z","closed_at":"2016-10-17T09:11:10Z","body":"the situation like this , in a fiber call another method,and in another method call fiber.get() method will cause this problem:\r\n\r\n```\r\nnew Fiber<Void>((SuspendableRunnable) () -> {\r\n            doSomething();\r\n        }).inheritThreadLocals().start();\r\n\r\nThen in the method use get() method:\r\n\r\n@Suspendable\r\n doSomething(){\r\n   // another fiber\r\n    Fiber<R> fiber = new Fiber<R>() {\r\n            @Override\r\n            protected R run() throws SuspendExecution, InterruptedException {\r\n                return companyTwoParam.apply(t1, t2);\r\n            }\r\n        };\r\n        fiber.inheritThreadLocals();\r\n        fiber.start();\r\n        return fiber;\r\n    \r\n      fiber.get(); //  the problem is here\r\n}\r\n\r\n```\r\n\r\nIf i change the outside fiber to use thread ,it`s fine\r\n\r\n\r\n```\r\nException in Fiber \"fiber-10000015\" If this exception looks strange, perhaps you've forgotten to instrument a blocking method. Run your program with -Dco.paralleluniverse.fibers.verifyInstrumentation to catch the culprit!\r\njava.lang.NullPointerException\r\n  at co.paralleluniverse.strands.Strand.parkNanos(Strand.java:670)\r\n  at co.paralleluniverse.strands.ConditionSynchronizer.awaitNanos(ConditionSynchronizer.java:79)\r\n  at co.paralleluniverse.strands.dataflow.Val.get(Val.java:188)\r\n  at co.paralleluniverse.fibers.Fiber.get(Fiber.java:1370)\r\n  at co.paralleluniverse.fibers.Fiber.join(Fiber.java:1343)\r\n  at co.paralleluniverse.strands.Strand.join(Strand.java:388)\r\n  at \r\n```\r\n\r\n\r\nI had use `-Dco.paralleluniverse.fibers.verifyInstrumentation` but there is no detect info,(it`s useful another situation)\r\n\r\nIn our product we use channel to transmit messages . but i also has some doubts about this.\r\n"},"comment":{"url":"https://api.github.com/repos/puniverse/quasar/issues/comments/254154060","html_url":"https://github.com/puniverse/quasar/issues/229#issuecomment-254154060","issue_url":"https://api.github.com/repos/puniverse/quasar/issues/229","id":254154060,"user":{"login":"tigerMoon","id":9305625,"avatar_url":"https://avatars.githubusercontent.com/u/9305625?v=3","gravatar_id":"","url":"https://api.github.com/users/tigerMoon","html_url":"https://github.com/tigerMoon","followers_url":"https://api.github.com/users/tigerMoon/followers","following_url":"https://api.github.com/users/tigerMoon/following{/other_user}","gists_url":"https://api.github.com/users/tigerMoon/gists{/gist_id}","starred_url":"https://api.github.com/users/tigerMoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tigerMoon/subscriptions","organizations_url":"https://api.github.com/users/tigerMoon/orgs","repos_url":"https://api.github.com/users/tigerMoon/repos","events_url":"https://api.github.com/users/tigerMoon/events{/privacy}","received_events_url":"https://api.github.com/users/tigerMoon/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T09:11:10Z","updated_at":"2016-10-17T09:11:10Z","body":"than you pron . this is an invalid issue. "}}
{"actor":{"display_login":"tigerMoon"}}