Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

About the null pointer crashes

A topic by Thomaster created 48 days ago Views: 215
Viewing posts 1 to 1
(+1)

Hello there,

I decided to do some tests, running debuggers etc. And stumbled upon this error message: 

"Uncaught TypeError: Cannot read property 'width' of null", source: file:///android_asset/www/js/plugins/Olivia_AnimatedPictures.js (340)

It seems like the error comes from this function in the code:

Sprite_Picture.prototype.updateAnimatedPictureFrame = function() {
    var pw = this.bitmap.width / this._animationHorzCells;
    var ph = this.bitmap.height / this._animationVertCells;
    var sx = this._animationIndex % this._animationHorzCells * pw;
    var sy = Math.floor(this._animationIndex / this._animationHorzCells) * ph;
    this.setFrame(sx, sy, pw, ph);
};

This could be a lead for the developers to solve the bug. I hope it will be fixed soon.