Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException while generating #24

Open
MuhamedFathy opened this issue May 31, 2018 · 1 comment
Open

NullPointerException while generating #24

MuhamedFathy opened this issue May 31, 2018 · 1 comment

Comments

@MuhamedFathy
Copy link

null java.lang.NullPointerException
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.getFieldsForJson(JsonDtoGenerator.java:192)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.generateDto(JsonDtoGenerator.java:141)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.addClass(JsonDtoGenerator.java:128)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.generateClassForObject(JsonDtoGenerator.java:277)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.generateDto(JsonDtoGenerator.java:152)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.addClass(JsonDtoGenerator.java:128)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.generateClassForObject(JsonDtoGenerator.java:277)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.generateDto(JsonDtoGenerator.java:152)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.addFieldsToTheClassUnderCaret(JsonDtoGenerator.java:93)
at com.nvinayshetty.DTOnator.FeedParser.JsonDtoGenerator.run(JsonDtoGenerator.java:89)
at com.intellij.openapi.command.WriteCommandAction$Simple.run(WriteCommandAction.java:234)
at com.intellij.openapi.application.RunResult.run(RunResult.java:35)
at com.intellij.openapi.command.WriteCommandAction.lambda$null$1(WriteCommandAction.java:171)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1003)
at com.intellij.openapi.command.WriteCommandAction.lambda$performWriteCommandAction$2(WriteCommandAction.java:170)
at com.intellij.openapi.command.WriteCommandAction.lambda$doExecuteCommand$4(WriteCommandAction.java:210)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:149)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:119)
at com.intellij.openapi.command.WriteCommandAction.doExecuteCommand(WriteCommandAction.java:212)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:168)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:151)
at com.nvinayshetty.DTOnator.ActionListener.UserActionListener.onGenerateButtonClick(UserActionListener.java:166)
at com.nvinayshetty.DTOnator.Ui.TabbedInputWindow.onGenerateClickWithValidFeed(TabbedInputWindow.java:146)
at com.nvinayshetty.DTOnator.Ui.JsonInputEditorPane$3.actionPerformed(JsonInputEditorPane.java:113)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
@fabiojb
Copy link

fabiojb commented Sep 14, 2018

@MuhamedFathy could you post the Json you used to simulate the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants