Skip to content

Commit

Permalink
fix npe when splitting error from service lib
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Dec 2, 2015
1 parent 3fc609a commit e2341f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/common/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class Server {
this.protocol.send(<IRawResponse> { id, data: {
message: data.message,
name: data.name,
stack: data.stack.split('\n')
stack: data.stack ? data.stack.split('\n') : void 0
}, type: ResponseType.Error });
} else {
this.protocol.send(<IRawResponse> { id, data, type: ResponseType.ErrorObj });
Expand Down

0 comments on commit e2341f6

Please sign in to comment.