Skip to content

Commit b47013d

Browse files
committed
fixed a problem with clearing cache of not cached asset keys.
1 parent 4c01a25 commit b47013d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/ss/editor/manager/ResourceManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ public synchronized void registerInterestedFileType(@NotNull final String fileEx
252252
@Override
253253
@FromAnyThread
254254
public synchronized void assetLoaded(@NotNull final AssetKey key) {
255+
if (key.getCacheType() == null) {
256+
return;
257+
}
255258

256259
final String extension = key.getExtension();
257260
if (StringUtils.isEmpty(extension)) return;
@@ -264,6 +267,9 @@ public synchronized void assetLoaded(@NotNull final AssetKey key) {
264267
@Override
265268
@FromAnyThread
266269
public synchronized void assetRequested(@NotNull final AssetKey key) {
270+
if (key.getCacheType() == null) {
271+
return;
272+
}
267273

268274
final String extension = key.getExtension();
269275
if (StringUtils.isEmpty(extension)) return;

0 commit comments

Comments
 (0)