Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8113625

Platform.exit() causes NPE if it was called before the Application initialization

    XMLWordPrintable

    Details

      Description

      Quantum implementation of 'exit()' method causes NPE beacuse of accessing to not-initialized 'pulseTimer' variable.

      Sample test code:
      ---------8<------------
      import javafx.application.Application;
      import javafx.application.Platform;
      import javafx.stage.Stage;

      public class PlatformExit extends Application {
          @Override
          public void start(Stage primaryStage) throws Exception {
          }
          public static void main(String[] args) {
              Platform.exit();
          }
      }
      --------->8------------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              alevasil Alexander Vasiliev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: