diff --git a/designer/src/com/fr/design/mainframe/JWorkBook.java b/designer/src/com/fr/design/mainframe/JWorkBook.java index e99c24a948..159886966a 100644 --- a/designer/src/com/fr/design/mainframe/JWorkBook.java +++ b/designer/src/com/fr/design/mainframe/JWorkBook.java @@ -382,7 +382,7 @@ public class JWorkBook extends JTemplate { if (resolution == 0){ resolution = ScreenResolution.getScreenResolution(); } - if (polyDezi.getSelection() !=null){ + if (polyDezi != null && polyDezi.getSelection() != null){ BlockCreator blockCreator =polyDezi.getSelection(); double x = blockCreator.getEditorBounds().getX(); double y = blockCreator.getEditorBounds().getY();