X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fgui%2FProjectFilesPage.java;h=a6fa3ab8810fc2d2362f50085e742d81d99860e0;hb=8655761d78156e4d17f874ea0de5a40cc5a24246;hp=d2479d48a209a6875afb2b4d63ca3f538af7f7da;hpb=7e667595d8380f21cfba9c6de67180fd1a44a5b1;p=jSite.git diff --git a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java index d2479d4..a6fa3ab 100644 --- a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java @@ -1,5 +1,5 @@ /* - * jSite - ProjectFilesPage.java - Copyright © 2006–2011 David Roden + * jSite - ProjectFilesPage.java - Copyright © 2006–2012 David Roden * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -249,6 +249,11 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis @SuppressWarnings("synthetic-access") private void storeText(DocumentEvent documentEvent) { FileOption fileOption = getSelectedFile(); + if (fileOption == null) { + /* no file selected. */ + System.out.println("yfwdasd"); + return; + } Document document = documentEvent.getDocument(); int documentLength = document.getLength(); try {