{"action":"created","issue":{"url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/51","labels_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/51/comments","events_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/51/events","html_url":"https://github.com/Excel-DNA/ExcelDna/issues/51","id":118316350,"number":51,"title":"LogDisplayTraceListener can't be used in the top trace listener","user":{"login":"dreamershl","id":1271739,"avatar_url":"https://avatars.githubusercontent.com/u/1271739?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamershl","html_url":"https://github.com/dreamershl","followers_url":"https://api.github.com/users/dreamershl/followers","following_url":"https://api.github.com/users/dreamershl/following{/other_user}","gists_url":"https://api.github.com/users/dreamershl/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamershl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamershl/subscriptions","organizations_url":"https://api.github.com/users/dreamershl/orgs","repos_url":"https://api.github.com/users/dreamershl/repos","events_url":"https://api.github.com/users/dreamershl/events{/privacy}","received_events_url":"https://api.github.com/users/dreamershl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T03:57:39Z","updated_at":"2015-11-23T09:35:23Z","closed_at":null,"body":"With the below config, app will get the NULL exception because of the Debug.print() output in initialization. \r\nAll the Debug methods won't check the TraceFilter. So there is no way to directly use the \"LogDisplay\" for error message popup. \r\n\r\nThe NULL exception is caused by the \"LogDisplay.RecordLine(message);\" That function doesn't check whether the \"LogStrings\" is null. \r\n\r\nIf add the following check, LogDisplay can be used directly. \r\n      \r\n    if (LogStrings == null)\r\n                return;\r\n    \r\n\r\nApp.config\r\n\r\n    <sharedListeners>\r\n      <add name=\"LogDisplay\" type=\"ExcelDna.Logging.LogDisplayTraceListener,ExcelDna.Integration\"/>\r\n    </sharedListeners>\r\n\r\n    <trace autoflush=\"false\" indentsize=\"4\">\r\n      <listeners>\r\n        <remove name=\"Default\"/>\r\n        <add name=\"LogDisplay\"/>\r\n      </listeners>\r\n    </trace>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/comments/158887702","html_url":"https://github.com/Excel-DNA/ExcelDna/issues/51#issuecomment-158887702","issue_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/51","id":158887702,"user":{"login":"govert","id":414659,"avatar_url":"https://avatars.githubusercontent.com/u/414659?v=3","gravatar_id":"","url":"https://api.github.com/users/govert","html_url":"https://github.com/govert","followers_url":"https://api.github.com/users/govert/followers","following_url":"https://api.github.com/users/govert/following{/other_user}","gists_url":"https://api.github.com/users/govert/gists{/gist_id}","starred_url":"https://api.github.com/users/govert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govert/subscriptions","organizations_url":"https://api.github.com/users/govert/orgs","repos_url":"https://api.github.com/users/govert/repos","events_url":"https://api.github.com/users/govert/events{/privacy}","received_events_url":"https://api.github.com/users/govert/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T09:35:23Z","updated_at":"2015-11-23T09:35:23Z","body":"Could you perhaps make a Pull Request to fix this?"}}