Q:

Extjs5 Uncaught TypeError: Cannot read property 'metaData' of null

Uncaught TypeError: Cannot read property 'metaData' of null
I moved from Ext4 to 5 and this error came while trying to load data ftom a treestore.Any Ideas?

A:

Ext.define(TreeSearchProxy, {
    extend: 'Ext.data.proxy.Ajax',
    alias: 'proxy.treesearchproxy',
    requires: [
        TreeSearchResultsReader
    ],
    reader: 'treesearchreader',
    url : eaxies.util.Globals.ServletName,
    simpleSortMode : true,
    extraParams :{
            ActionID: eaxies.util.Globals.ServletActions.RetrieveTreeSearchResults,
            query: null,
            dioikitikidiairesi: null,
            elementId: null,
            originalElementId: null,
            expandedNodeIds: null
    }
});enter code here

