bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
856 stars 301 forks source link

NullPointerException while input url/username/password in webdav setting #1598

Open ArayChou opened 5 years ago

ArayChou commented 5 years ago

GanttProject 2.8.9 Pilsen (build 2335) java version "10" 2018-03-20 Microsoft Windows [Version 10.0.17134.228]

Hello, I download the zip from https://codeload.github.com/bardsoftware/ganttproject/zip/ganttproject-2.8.8, unzip it to a folder, and double click ganttproject.bat to lunch the application. everything works fine.

But I can NOT change/add webdav settings. When I try to input URL/Username/Password in the WebDAV setting page. only one latter is showed in the input box. and got error log as this: (please check the whole error log file: https://github.com/ArayChou/static/blob/master/ganttproject.log )

Sep 13, 2018 8:26:14 AM net.sourceforge.ganttproject.GPLogger logToLogger WARNING: null java.lang.NullPointerException at net.sourceforge.ganttproject.document.webdav.WebDavOptionPageProvider$2.changeValue(WebDavOptionPageProvider.java:93) at biz.ganttproject.core.option.GPAbstractOption$Listeners.fire(GPAbstractOption.java:214) at biz.ganttproject.core.option.GPAbstractOption.fireChangeValueEvent(GPAbstractOption.java:130) at biz.ganttproject.core.option.GPAbstractOption.resetValue(GPAbstractOption.java:96) at biz.ganttproject.core.option.GPAbstractOption.setValue(GPAbstractOption.java:80) at net.sourceforge.ganttproject.gui.options.OptionsPageBuilder$14.saveValue(OptionsPageBuilder.java:367) at net.sourceforge.ganttproject.gui.options.OptionsPageBuilder$14.insertUpdate(OptionsPageBuilder.java:376) at java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source) at java.desktop/javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at java.desktop/javax.swing.text.AbstractDocument.insertString(Unknown Source) at java.desktop/javax.swing.text.PlainDocument.insertString(Unknown Source) at java.desktop/javax.swing.text.AbstractDocument.replace(Unknown Source) at java.desktop/javax.swing.text.JTextComponent.replaceSelection(Unknown Source) at java.desktop/javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(Unknown Source) at java.desktop/javax.swing.SwingUtilities.notifyAction(Unknown Source) at java.desktop/javax.swing.JComponent.processKeyBinding(Unknown Source) at java.desktop/javax.swing.JComponent.processKeyBindings(Unknown Source) at java.desktop/javax.swing.JComponent.processKeyEvent(Unknown Source) at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source) at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source) at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue.access$600(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source) at java.desktop/java.awt.Dialog.show(Unknown Source) at java.desktop/java.awt.Component.show(Unknown Source) at java.desktop/java.awt.Component.setVisible(Unknown Source) at java.desktop/java.awt.Window.setVisible(Unknown Source) at java.desktop/java.awt.Dialog.setVisible(Unknown Source) at net.sourceforge.ganttproject.DialogBuilder$DialogImpl.show(DialogBuilder.java:148) at net.sourceforge.ganttproject.gui.AbstractPagesDialog.show(AbstractPagesDialog.java:79) at net.sourceforge.ganttproject.gui.AbstractPagesDialog.show(AbstractPagesDialog.java:68) at net.sourceforge.ganttproject.action.edit.SettingsDialogAction.actionPerformed(SettingsDialogAction.java:48) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source) at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.desktop/java.awt.Component.processMouseEvent(Unknown Source) at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source) at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue.access$600(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

dbarashev commented 5 years ago

Thanks for reporting. There is certainly an issue which needs to be fixed. However, it seems that you're typing text with no selected server in the list to the left. Add a new server and give it some name, and when it is done, you can edit its properties without any issues.

ArayChou commented 5 years ago

@dbarashev thank you very much. it perfectly works now.

dbarashev commented 5 years ago

Why closing? It is certainly a bug that NullPointerException fails and/or controls allow for input when server is not selected.