Project: titanium
Issue TIMOB-23425: Windows: Ti.Blob.imageAs* methods crash the application when using a blob that does not represent an image
h5.Description When using the Ti.Blob.imageAs methods if they are given a blob that does not represent an image then the application will crash, based off the documentation and other platforms they should not crash but just return null [docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Blob-method-imageAsResized] {code} var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'text.txt'); file.write('hi'); var win = Ti.UI.createWindow({	backgroundColor: 'black' }); var btn = Ti.UI.createButton({	title: 'resized',	top: 10 }); btn.addEventListener('click', function(){	var file2 = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'text.txt');	var text = file2.read();	var resized = text.imageAsResized(25, 25);; }); var btn2 = Ti.UI.createButton({	title: 'cropped',	top: 75 }); win.add(btn); win.open(); {code} h5.Steps to reproduce 1. Using the code above build to a windows device or emulator h5.Actual result Application will crash h5.Expected result Application should not crash, methods should return null
Story points: 3