{"action":"opened","issue":{"url":"https://api.github.com/repos/jbachorik/btrace/issues/145","labels_url":"https://api.github.com/repos/jbachorik/btrace/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/jbachorik/btrace/issues/145/comments","events_url":"https://api.github.com/repos/jbachorik/btrace/issues/145/events","html_url":"https://github.com/jbachorik/btrace/issues/145","id":101118002,"number":145,"title":"Inconsistent behavior when trying to probe return values from multiple methods","user":{"login":"jbachorik","id":738413,"avatar_url":"https://avatars.githubusercontent.com/u/738413?v=3","gravatar_id":"","url":"https://api.github.com/users/jbachorik","html_url":"https://github.com/jbachorik","followers_url":"https://api.github.com/users/jbachorik/followers","following_url":"https://api.github.com/users/jbachorik/following{/other_user}","gists_url":"https://api.github.com/users/jbachorik/gists{/gist_id}","starred_url":"https://api.github.com/users/jbachorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbachorik/subscriptions","organizations_url":"https://api.github.com/users/jbachorik/orgs","repos_url":"https://api.github.com/users/jbachorik/repos","events_url":"https://api.github.com/users/jbachorik/events{/privacy}","received_events_url":"https://api.github.com/users/jbachorik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jbachorik/btrace/labels/BTRACE","name":"BTRACE","color":"46e08b"},{"url":"https://api.github.com/repos/jbachorik/btrace/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jbachorik/btrace/labels/Core","name":"Core","color":"b62938"}],"state":"open","locked":false,"assignee":{"login":"jbachorik","id":738413,"avatar_url":"https://avatars.githubusercontent.com/u/738413?v=3","gravatar_id":"","url":"https://api.github.com/users/jbachorik","html_url":"https://github.com/jbachorik","followers_url":"https://api.github.com/users/jbachorik/followers","following_url":"https://api.github.com/users/jbachorik/following{/other_user}","gists_url":"https://api.github.com/users/jbachorik/gists{/gist_id}","starred_url":"https://api.github.com/users/jbachorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbachorik/subscriptions","organizations_url":"https://api.github.com/users/jbachorik/orgs","repos_url":"https://api.github.com/users/jbachorik/repos","events_url":"https://api.github.com/users/jbachorik/events{/privacy}","received_events_url":"https://api.github.com/users/jbachorik/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jbachorik/btrace/milestones/17","html_url":"https://github.com/jbachorik/btrace/milestones/1.3.4","labels_url":"https://api.github.com/repos/jbachorik/btrace/milestones/17/labels","id":1255999,"number":17,"title":"1.3.4","description":null,"creator":{"login":"jbachorik","id":738413,"avatar_url":"https://avatars.githubusercontent.com/u/738413?v=3","gravatar_id":"","url":"https://api.github.com/users/jbachorik","html_url":"https://github.com/jbachorik","followers_url":"https://api.github.com/users/jbachorik/followers","following_url":"https://api.github.com/users/jbachorik/following{/other_user}","gists_url":"https://api.github.com/users/jbachorik/gists{/gist_id}","starred_url":"https://api.github.com/users/jbachorik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbachorik/subscriptions","organizations_url":"https://api.github.com/users/jbachorik/orgs","repos_url":"https://api.github.com/users/jbachorik/repos","events_url":"https://api.github.com/users/jbachorik/events{/privacy}","received_events_url":"https://api.github.com/users/jbachorik/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2015-08-14T22:50:43Z","updated_at":"2015-08-14T22:50:48Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-14T22:50:47Z","updated_at":"2015-08-14T22:50:47Z","closed_at":null,"body":"Following snippet leads to NPE\r\n```\r\n@OnMethod(clazz=\"extra.HelloWorld\", method=\"/.*/\", location = @Location(Kind.RETURN))\r\n    public static void trace(@ProbeMethodName(fqn = true) String pmn, @Return String o) {\r\n```\r\n\r\njava.lang.NullPointerException\r\n\tat java.lang.String.<init>(String.java:198)\r\n\tat com.sun.btrace.org.objectweb.asm.Type.getInternalName(Unknown Source)\r\n\tat com.sun.btrace.util.LocalVariableHelperImpl.storeNewLocal(LocalVariableHelperImpl.java:291)\r\n\tat com.sun.btrace.util.templates.TemplateExpanderVisitor.storeNewLocal(TemplateExpanderVisitor.java:64)\r\n\tat com.sun.btrace.runtime.MethodInstrumentor.storeNewLocal(MethodInstrumentor.java:298)\r\n\tat com.sun.btrace.runtime.Instrumentor$15.callAction(Instrumentor.java:1232)\r\n\tat com.sun.btrace.runtime.Instrumentor$15.onMethodReturn(Instrumentor.java:1275)\r\n\tat com.sun.btrace.runtime.MethodReturnInstrumentor.visitInsn(MethodReturnInstrumentor.java:62)\r\n\tat com.sun.btrace.org.objectweb.asm.MethodVisitor.visitInsn(Unknown Source)\r\n\tat com.sun.btrace.org.objectweb.asm.ClassReader.a(Unknown Source)\r\n\tat com.sun.btrace.org.objectweb.asm.ClassReader.b(Unknown Source)\r\n\tat com.sun.btrace.org.objectweb.asm.ClassReader.accept(Unknown Source)\r\n\tat com.sun.btrace.org.objectweb.asm.ClassReader.accept(Unknown Source)\r\n\tat com.sun.btrace.runtime.InstrumentUtils.accept(InstrumentUtils.java:119)\r\n\tat com.sun.btrace.runtime.InstrumentUtils.accept(InstrumentUtils.java:115)\r\n\tat com.sun.btrace.agent.Client.instrument(Client.java:395)\r\n\tat com.sun.btrace.agent.Client.doTransform(Client.java:215)\r\n\tat com.sun.btrace.agent.Client.transform(Client.java:167)\r\n\tat sun.instrument.TransformerManager.transform(TransformerManager.java:188)\r\n\tat sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)\r\n\tat sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)\r\n\tat sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)\r\n\tat com.sun.btrace.agent.Main$4.run(Main.java:484)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\nWith \r\n```\r\n@OnMethod(clazz=\"extra.HelloWorld\", location = @Location(Kind.RETURN))\r\n    public static void trace(@ProbeMethodName(fqn = true) String pmn, @Return String o) {\r\n```\r\n\r\nwe don't get NPE but the methods are not matched."}}