Skip to content

Commit

Permalink
Fix error on trying to parse an empty string into xmljs
Browse files Browse the repository at this point in the history
  • Loading branch information
gwomacks committed May 14, 2015
1 parent a794911 commit e9684a2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/breakpoint/breakpoint-item-view.coffee
@@ -1,4 +1,4 @@
{View} = require 'atom'
{View} = require 'atom-space-pen-views'

module.exports =
class BreakpointItemView extends View
Expand Down
2 changes: 1 addition & 1 deletion lib/breakpoint/breakpoint-list-view.coffee
@@ -1,4 +1,4 @@
{View} = require 'atom'
{View} = require 'atom-space-pen-views'
BreakpointItemView = require './breakpoint-item-view'

module.exports =
Expand Down
2 changes: 1 addition & 1 deletion lib/breakpoint/breakpoint-view.coffee
@@ -1,4 +1,4 @@
{View} = require 'atom'
{View} = require 'atom-space-pen-views'
BreakpointListView = require './breakpoint-list-view'

module.exports =
Expand Down
13 changes: 7 additions & 6 deletions lib/engines/dbgp/dbgp-instance.coffee
Expand Up @@ -46,12 +46,13 @@ class DbgpInstance extends DebugContext
len = parseInt(buffer.slice(0, n))
message = buffer.slice(n+1, n+1+len)
buffer = buffer.slice(n+2+len)
o = parseString message, (err, result) =>
type = Object.keys(result)[0]
switch type
when "init" then @onInit result
when "response"
@parseResponse result
if message != ""
o = parseString message, (err, result) =>
type = Object.keys(result)[0]
switch type
when "init" then @onInit result
when "response"
@parseResponse result
return buffer

parseResponse: (data) =>
Expand Down
2 changes: 1 addition & 1 deletion lib/watch/watch-view.coffee
@@ -1,4 +1,4 @@
{View} = require 'atom'
{View} = require 'atom-space-pen-views'

module.exports =
class WatchView extends View
Expand Down

0 comments on commit e9684a2

Please sign in to comment.