{"action":"closed","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/629","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/629/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/629/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/629","id":62684677,"number":629,"title":"Problem with version 1.6 data null fixScroll","user":{"login":"angelfangulo","id":1413163,"avatar_url":"https://avatars.githubusercontent.com/u/1413163?v=3","gravatar_id":"","url":"https://api.github.com/users/angelfangulo","html_url":"https://github.com/angelfangulo","followers_url":"https://api.github.com/users/angelfangulo/followers","following_url":"https://api.github.com/users/angelfangulo/following{/other_user}","gists_url":"https://api.github.com/users/angelfangulo/gists{/gist_id}","starred_url":"https://api.github.com/users/angelfangulo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelfangulo/subscriptions","organizations_url":"https://api.github.com/users/angelfangulo/orgs","repos_url":"https://api.github.com/users/angelfangulo/repos","events_url":"https://api.github.com/users/angelfangulo/events{/privacy}","received_events_url":"https://api.github.com/users/angelfangulo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T12:43:20Z","updated_at":"2015-03-25T02:42:08Z","closed_at":"2015-03-25T02:42:08Z","body":"I have a problem with this version when de json is null:\r\n\r\nTypeError: data is null\r\n\r\nfixedScroll = data.fixedScroll;\r\n\r\n\t\r\nbootstr...able.js (línea 1645, col 12)\r\n```\r\n BootstrapTable.prototype.load = function (data) {\r\n        var fixedScroll = false;\r\n\r\n        // #431: support pagination\r\n        if (this.options.sidePagination === 'server') {\r\n            this.options.totalRows = data.total;\r\n            fixedScroll = data.fixedScroll;\r\n            data = data.rows;\r\n        } else if (!$.isArray(data)) { // support fixedScroll\r\n            fixedScroll = data.fixedScroll;\r\n            data = data.data;\r\n        }\r\n\r\n        this.initData(data);\r\n        this.initSearch();\r\n        this.initPagination();\r\n        this.initBody(fixedScroll);\r\n    };\r\n```\r\nThis problem in version 1.3 did not have it\r\n\r\nI modified the line and I have added and I've fixed:\r\n\r\n        if(data){\r\n\t        // #431: support pagination\r\n\t        if (this.options.sidePagination === 'server') {\r\n\t            this.options.totalRows = data.total;\r\n\t            fixedScroll = data.fixedScroll;\r\n\t            data = data.rows;\r\n\t        } else if (!$.isArray(data)) { // support fixedScroll\r\n\t            fixedScroll = data.fixedScroll;\r\n\t            data = data.data;\r\n\t        }\r\n\t\r\n\t        this.initData(data);\r\n\t        this.initSearch();\r\n\t        this.initPagination();\r\n\t        this.initBody(fixedScroll);\r\n        }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}