mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 06:01:57 +00:00
Fixed #1904 NullpointerException when fast switching items
This commit is contained in:
@@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
### Fixed
|
||||
- [#1904] NullpointerException when renaming invalid identifiers in AS1/2 files caused by missing charset
|
||||
- [#1904] NullpointerException when fast switching items
|
||||
|
||||
### Changed
|
||||
- Warning before switching deobfuscation is now optional
|
||||
|
||||
@@ -473,7 +473,11 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
|
||||
tim.schedule(new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
RECT rect = timelined.getRect();
|
||||
Timelined tim = timelined;
|
||||
if (tim == null) {
|
||||
return;
|
||||
}
|
||||
RECT rect = tim.getRect();
|
||||
double zoomDouble = zoom.fit ? getZoomToFit() : zoom.value;
|
||||
double w = rect.getWidth() / SWF.unitDivisor * zoomDouble;
|
||||
double h = rect.getHeight() / SWF.unitDivisor * zoomDouble;
|
||||
|
||||
Reference in New Issue
Block a user