| Summary: | TypeError: Cannot read property 'logs' of undefined (in logView.js) | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Grant Gayed <grant_gayed> |
| Component: | Client | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | curtis.windatt.public, steve_northover |
| Version: | unspecified | ||
| Target Milestone: | 15.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html reopening, this still happens in V2 Seems like something we should fix. Whatever the pattern is that is causing it, it might occur in many more places. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=aa043cbd5ab0d688b871540b934a531c06ea4a1a Fixed in master ApplicationInfo is managed with a getter/setter and is only used in that one place to concatenate the logs. A simple check that applicationInfo has been set is sufficient. |
Reported by GA, 'this.applicationInfo' may be undefined in the line marked below: load: function(){ var logName = this.getInput(); this._acceptPatch = null; var fullLog = ""; this.applicationInfo.logs.forEach(function(line){ // <--------- The stack: TypeError: Cannot read property 'logs' of undefined at r.o.mixin.load (/code/cfui/logs.js:37:14805) at I.T.Command.callback (/code/cfui/logs.js:38:2543) at p._collectAndInvoke (/code/cfui/logs.js:10:1783) at p._invoke (/code/cfui/logs.js:10:1516) at N (/code/cfui/logs.js:10:12592) at y (/code/cfui/logs.js:4:1803) at t (/code/cfui/logs.js:4:2293) at HTMLButtonElement.<anonymous> (/code/cfui/logs.js:4:2353)