           @emitDidChangeEvent({
             oldRange: new Range(Point.ZERO, oldExtent),
             newRange: new Range(Point.ZERO, @buffer.getExtent()),
-            oldText: null,
-            newText: null
+            oldText: '',
+            newText: ''
           })
 
     @fileSubscriptions.add @file.onDidDelete =>

    @shouldDestroyOnFileDelete = params?.shouldDestroyOnFileDelete ? -> false

    if params?.filePath
      @serializedChanges = params.outstandingChanges
      @setPath(params.filePath)
      @load() if params?.load


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