| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -236,10 +236,12 @@ var BufferedBinaryAjax = function(strUrl, fncCallback, fncError) { | |||
| 236 | 236 | */ | |
| 237 | 237 | this.getByteAt = function(iOffset) { | |
| 238 | 238 | var block = getBlockAtOffset(iOffset); | |
| 239 | - if( typeof block.data == "string" ) { | ||
| 239 | + if( block && typeof block.data == "string" ) { | ||
| 240 | 240 | return block.data.charCodeAt(iOffset - block.offset) & 0xFF; | |
| 241 | - } else if( typeof block.data == "unknown" ) { | ||
| 241 | + } else if( block && typeof block.data == "unknown" ) { | ||
| 242 | 242 | return IEBinary_getByteAt(block.data, iOffset - block.offset); | |
| 243 | + } else { | ||
| 244 | + return "" | ||
| 243 | 245 | } | |
| 244 | 246 | }; | |
| 245 | 247 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments