{"action":"created","issue":{"url":"https://api.github.com/repos/opensim-org/opensim-gui/issues/622","repository_url":"https://api.github.com/repos/opensim-org/opensim-gui","labels_url":"https://api.github.com/repos/opensim-org/opensim-gui/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/opensim-org/opensim-gui/issues/622/comments","events_url":"https://api.github.com/repos/opensim-org/opensim-gui/issues/622/events","html_url":"https://github.com/opensim-org/opensim-gui/issues/622","id":308127783,"number":622,"title":"NullPointerException after selecting local folder for resources on first launch","user":{"login":"aseth1","id":6494122,"avatar_url":"https://avatars0.githubusercontent.com/u/6494122?v=4","gravatar_id":"","url":"https://api.github.com/users/aseth1","html_url":"https://github.com/aseth1","followers_url":"https://api.github.com/users/aseth1/followers","following_url":"https://api.github.com/users/aseth1/following{/other_user}","gists_url":"https://api.github.com/users/aseth1/gists{/gist_id}","starred_url":"https://api.github.com/users/aseth1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseth1/subscriptions","organizations_url":"https://api.github.com/users/aseth1/orgs","repos_url":"https://api.github.com/users/aseth1/repos","events_url":"https://api.github.com/users/aseth1/events{/privacy}","received_events_url":"https://api.github.com/users/aseth1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T18:00:42Z","updated_at":"2018-03-23T18:23:45Z","closed_at":null,"author_association":"OWNER","body":"### Steps to reproduce\r\nInstall OpenSim using installer on Mac.\r\nLaunch OpenSim, which prompts to select folder for resources (e.g. ~/Documents/OpenSim/Beta.4.0_3_22)\r\n\r\n### Expected result\r\nAccepts folder if it exists or creates new one.\r\n\r\n### Actual result\r\nThrows:\r\n```\r\njava.lang.NullPointerException\r\n\tat org.opensim.utils.FileUtils.browseForFolder(FileUtils.java:286)\r\n\tat org.opensim.swingui.FileTextFieldAndChooser.browseButtonActionPerformed(FileTextFieldAndChooser.java:227)\r\n\tat org.opensim.swingui.FileTextFieldAndChooser.access$300(FileTextFieldAndChooser.java:39)\r\n\tat org.opensim.swingui.FileTextFieldAndChooser$4.actionPerformed(FileTextFieldAndChooser.java:285)\r\n\tat javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)\r\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)\r\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\r\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\r\n\tat javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)\r\n\tat java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)\r\n\tat java.awt.Component.processMouseEvent(Component.java:6533)\r\n\tat javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n\tat java.awt.Component.processEvent(Component.java:6298)\r\n\tat java.awt.Container.processEvent(Container.java:2236)\r\n\tat java.awt.Component.dispatchEventImpl(Component.java:4889)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2294)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4711)\r\n\tat java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)\r\n\tat java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)\r\n\tat java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2280)\r\n\tat java.awt.Window.dispatchEventImpl(Window.java:2746)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4711)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:731)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:729)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n\tat org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)\r\n[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)\r\n\tat java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)\r\n\tat java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)\r\n\tat java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)\r\n\tat java.awt.Dialog.show(Dialog.java:1084)\r\n\tat org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1086)\r\n\tat org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1136)\r\n\tat org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1108)\r\n\tat org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:131)\r\n\tat org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:138)\r\n\tat org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:98)\r\n\tat org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:94)\r\n\tat org.openide.util.Mutex.readAccess(Mutex.java:218)\r\n\tat org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1093)\r\n\tat java.awt.Component.show(Component.java:1671)\r\n\tat java.awt.Component.setVisible(Component.java:1623)\r\n\tat java.awt.Window.setVisible(Window.java:1014)\r\n\tat java.awt.Dialog.setVisible(Dialog.java:1005)\r\n\tat org.opensim.utils.TheApp.installResources(TheApp.java:208)\r\n\tat org.opensim.view.Installer$2.run(Installer.java:156)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:726)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n```\r\n\r\n### Environment and GUI version\r\nMac, OpenSim 85d9741-2018-03-22"},"comment":{"url":"https://api.github.com/repos/opensim-org/opensim-gui/issues/comments/375758301","html_url":"https://github.com/opensim-org/opensim-gui/issues/622#issuecomment-375758301","issue_url":"https://api.github.com/repos/opensim-org/opensim-gui/issues/622","id":375758301,"user":{"login":"aymanhab","id":3972208,"avatar_url":"https://avatars0.githubusercontent.com/u/3972208?v=4","gravatar_id":"","url":"https://api.github.com/users/aymanhab","html_url":"https://github.com/aymanhab","followers_url":"https://api.github.com/users/aymanhab/followers","following_url":"https://api.github.com/users/aymanhab/following{/other_user}","gists_url":"https://api.github.com/users/aymanhab/gists{/gist_id}","starred_url":"https://api.github.com/users/aymanhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aymanhab/subscriptions","organizations_url":"https://api.github.com/users/aymanhab/orgs","repos_url":"https://api.github.com/users/aymanhab/repos","events_url":"https://api.github.com/users/aymanhab/events{/privacy}","received_events_url":"https://api.github.com/users/aymanhab/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T18:23:45Z","updated_at":"2018-03-23T18:23:45Z","author_association":"OWNER","body":"So, did it install in another folder, or not install at all? You can invoke the same dialog by typing installResources() in the scripting shell."}}
{"actor":{"display_login":"aymanhab"}}