# loadMetaData nullPointerException

**URL:** https://forum.vassalengine.org/t/loadmetadata-nullpointerexception/641
**Category:** Development
**Created:** [May 25, 2008, 1:21pm UTC](https://forum.vassalengine.org/t/loadmetadata-nullpointerexception/641 "2008-05-25T13:21:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mkiefte](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/mkiefte/32/25_2.png) [@mkiefte](https://forum.vassalengine.org/u/mkiefte)
#### Post date: [May 25, 2008, 1:21pm UTC](https://forum.vassalengine.org/t/loadmetadata-nullpointerexception/641/1 "2008-05-25T13:21:09Z")

</div>

Something funny’s happening with the new patches. After the importer has done it’s job, the ModuleManagerWindow goes through it’s list of modules again and finds an ADC2 OPS file that is not a valid archive (obviously). It then calls setValid(false) which terminates VASSAL with an exception.

Where does the OPS file get called an archive and how do I fix it?

---

<div class="post-metadata">

### Author: ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)
#### Post date: [May 25, 2008, 1:22pm UTC](https://forum.vassalengine.org/t/loadmetadata-nullpointerexception/641/2 "2008-05-25T13:22:56Z")

</div>

Thus spake “mkiefte”:

> [@](#):
>
> Something funny’s happening with the new patches. After the importer has don  
> e it’s job, the ModuleManagerWindow goes through it’s list of modules again a  
> nd finds an ADC2 OPS file that is not a valid archive (obviously). It then c  
> alls setValid(false) which terminates VASSAL with an exception.
> 
> Where does the OPS file get called an archive and how do I fix it?

I know what the problem is. I’ll fix it right now.

–  
J.

* * *

Messages mailing list  
[Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org)  
[forums.vassalengine.org/mailman/ … engine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))

---

<div class="post-metadata">

### Author: ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)
#### Post date: [May 25, 2008, 1:51pm UTC](https://forum.vassalengine.org/t/loadmetadata-nullpointerexception/641/3 "2008-05-25T13:51:35Z")

</div>

Thus spake Joel Uckelman:

> [@](#):
>
> Thus spake “mkiefte”:
> 
> > [@](#):
> >
> > Something funny’s happening with the new patches. After the importer has d
> 
> on
> 
> > [@](#):
> >
> > e it’s job, the ModuleManagerWindow goes through it’s list of modules again
> 
> a
> 
> > [@](#):
> >
> > nd finds an ADC2 OPS file that is not a valid archive (obviously). It then
> 
> c
> 
> > [@](#):
> >
> > alls setValid(false) which terminates VASSAL with an exception.
> > 
> > Where does the OPS file get called an archive and how do I fix it?
> 
> I know what the problem is. I’ll fix it right now.

There you go. It’s fixed in trunk@3649. The problem was that loading  
anything told the ModuleManager “NOTIFY\_OPEN\_OK”, which tries to add  
the module to the list. But there’s no module file yet when you import.  
I changed it so that “NOTIFY\_IMPORT\_OK” is returned and no attempt  
is made to add the module to the list at import-time.

–  
J.

* * *

Messages mailing list  
[Messages@forums.vassalengine.org](mailto:Messages@forums.vassalengine.org)  
[forums.vassalengine.org/mailman/ … engine.org](http://forums.vassalengine.org/mailman/listinfo/messages_forums.vassalengine.org)

Post generated using Mail2Forum ([mail2forum.com](http://www.mail2forum.com))
