{"action":"opened","issue":{"url":"https://api.github.com/repos/AppliedEnergistics/Applied-Energistics-2/issues/683","labels_url":"https://api.github.com/repos/AppliedEnergistics/Applied-Energistics-2/issues/683/labels{/name}","comments_url":"https://api.github.com/repos/AppliedEnergistics/Applied-Energistics-2/issues/683/comments","events_url":"https://api.github.com/repos/AppliedEnergistics/Applied-Energistics-2/issues/683/events","html_url":"https://github.com/AppliedEnergistics/Applied-Energistics-2/issues/683","id":53325364,"number":683,"title":"Issuing A Crafting Job From A Non-Native Terminal","user":{"login":"Nividica","id":1585989,"avatar_url":"https://avatars.githubusercontent.com/u/1585989?v=3","gravatar_id":"","url":"https://api.github.com/users/Nividica","html_url":"https://github.com/Nividica","followers_url":"https://api.github.com/users/Nividica/followers","following_url":"https://api.github.com/users/Nividica/following{/other_user}","gists_url":"https://api.github.com/users/Nividica/gists{/gist_id}","starred_url":"https://api.github.com/users/Nividica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nividica/subscriptions","organizations_url":"https://api.github.com/users/Nividica/orgs","repos_url":"https://api.github.com/users/Nividica/repos","events_url":"https://api.github.com/users/Nividica/events{/privacy}","received_events_url":"https://api.github.com/users/Nividica/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-04T04:59:49Z","updated_at":"2015-01-04T04:59:49Z","closed_at":null,"body":"Hello AE2 Team,\r\nI have recently been working on integrating the auto-crafting system with Thaumic Energistics, and have run into an issue dealing with issuing crafting jobs from my terminal.\r\nWhen attempting to start a crafting job from my terminal, I am running into a crash originating from the GuiCraftConfirm button list. When the constructor is called, the field 'OriginalGui' is not set, [Lines 90 to 100](https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/63e375f2087c8c1f1f1aae94c17163b1bb9deb19/src/main/java/appeng/client/gui/implementations/GuiCraftConfirm.java#L90). Because this field is not being set, the check on [line 122](https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/63e375f2087c8c1f1f1aae94c17163b1bb9deb19/src/main/java/appeng/client/gui/implementations/GuiCraftConfirm.java#L122) fails and the cancel button gets added to the button list as null. This in-turn causes a NullPointerException to occur from \"net.minecraft.client.gui.GuiScreen.drawScreen\" when it gets the button.\r\n\r\nMy original thought was to remove the check on line 122 so that the cancel button is never null, then put the check on line 169. If the OriginalGui is null in that location then just close the gui, if not continue as usual. However after testing with these changes I ran into another issue where after pressing Start, the gui does not close but instead only disables the start button (see attached image).\r\n\r\nAnother idea I had was adding a method to the ITerminalHost interface to retrieve the original gui, such as \"getHostGUI()\". However this may have further reaching repercussions than I am aware of.\r\n\r\nAny help with the issue or suggestions would be greatly welcome, as I have hit a roadblock.\r\n\r\n![craftwindow](https://cloud.githubusercontent.com/assets/1585989/5604813/3d05639c-93a3-11e4-9322-f8a23be89c58.jpg)\r\n"}}