         @emitDidChangeEvent({
           oldRange: new Range(Point.ZERO, oldExtent),
           newRange: new Range(Point.ZERO, @buffer.getExtent()),
-          oldText: null,
-          newText: null
+          oldText: '',
+          newText: ''
         })
         @emitter.emit 'did-reload'
     this

          @emitDidChangeEvent({
            oldRange: new Range(Point.ZERO, oldExtent),
            newRange: new Range(Point.ZERO, @buffer.getExtent()),
            oldText: null,
            newText: null
          })

    @fileSubscriptions.add @file.onDidDelete =>

    @shouldDestroyOnFileDelete = params?.shouldDestroyOnFileDelete ? -> false

    if params?.filePath
      @serializedChanges = Buffer.from(params.outstandingChanges, 'base64')
      @setPath(params.filePath)
      @load() if params?.load

