Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions polymod/fs/BaseFileSystem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ abstract class BaseFileSystem implements IFileSystem

var iconFile = getModIconPath(modPath, origin);

if (exists(iconFile))
if (iconFile != null && exists(iconFile))
{
var iconBytes:Null<Bytes> = getFileBytes(iconFile);

Expand Down Expand Up @@ -370,7 +370,7 @@ abstract class BaseFileSystem implements IFileSystem

var iconFile = getModIconPath(modPath, origin);

if (exists(iconFile))
if (iconFile != null && exists(iconFile))
{
var iconBytes:Null<Bytes> = getFileBytes(iconFile);

Expand Down
2 changes: 1 addition & 1 deletion polymod/fs/SysZipFileSystem.hx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class SysZipFileSystem extends SysFileSystem

var iconFile = getModIconPath(modId, origin);

if (exists(iconFile))
if (iconFile != null && exists(iconFile))
{
var iconBytes:Null<Bytes> = getFileBytes(iconFile);

Expand Down
Loading