Bonjour,
quand je lance mon appl j'ai un message d'erreur qui apparait sans pour autant faire planter quoi que ce soit... comme fait on pour degugguer un truc sur lequel on a aucune info ? (Unknown Source).
L'exception :
Code java : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Exception in thread "main" java.lang.NullPointerException at com.jgraph.editor.JGraphEditorFactory.getAction(Unknown Source) at com.jgraph.editor.JGraphEditorFactory.createMenuItem(Unknown Source) at com.jgraph.editor.JGraphEditorFactory.configureMenuBar(Unknown Source) at com.jgraph.editor.JGraphEditorFactory.configureMenuBar(Unknown Source) at com.jgraph.editor.JGraphEditorFactory.createMenuBar(Unknown Source) at fr.upmc.dsi.siview.factory.SIViewPane$FactoryMethod.createInstance(SIViewPane.java:635) at com.jgraph.editor.JGraphEditorFactory.executeMethod(Unknown Source) at fr.upmc.dsi.siview.SIView.createMainWindow(SIView.java:203) at fr.upmc.dsi.siview.SIView.createApplication(SIView.java:132) at fr.upmc.dsi.siview.SIView.main(SIView.java:366)
La ligne qui contient l'appel à la méthode createMenubar est celle qui provoque l'exception.
Pouvez vous m'aider svp?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 public Component createInstance(Node configuration) { final JFrame frame = new JFrame(); frame.getContentPane().setLayout(new BorderLayout()); final SIViewPane editorpane = new SIViewPane(this.editor,this.mode); frame.getContentPane().add(editorpane,BorderLayout.CENTER); Node menubar = JGraphEditorSettings.getNodeByName(configuration.getChildNodes(),NODENAME_MENUBAR); frame.setJMenuBar((JMenuBar) editor.getFactory().createMenuBar(menubar)); Component statusbar = editor.getFactory().executeMethod(SIViewStatusBar.FactoryMethod.NAME); frame.getContentPane().add(statusbar, BorderLayout.SOUTH); return frame; }
Partager