Hi!
I evaluated some MIB parsers and mibble crunched bravely through more
than 160 MIB files, but it produced one NullPointerException with a
particular erroneous MIB file. I have created a minimal MIB file, which
shows the problem, see below.
The problem arises when Unsigned32 is defined, but throws NPE if not. I
would have expected a "undefined symbol" error - which occurs after
removing the revealNpeMibEntry definition.
Would it be much effort to fix this?
Thanks
Markus
REVEAL-NPE-MIB DEFINITIONS ::= BEGIN
revealNpeMib MODULE-IDENTITY
LAST-UPDATED "0701161535Z"
ORGANIZATION "NONE"
CONTACT-INFO "mbarchfeld"
DESCRIPTION "Shows a NullPointerException of mibble parser"
::= { iso 21 }
-- uncomment the following definition of Unsigned32 and the mibble
parser will
-- parse this file just fine
-- Unsigned32 ::=
-- [APPLICATION 2]
-- IMPLICIT INTEGER (0..4294967295) BasedOnUnknownSyntax
::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION "None."
SYNTAX Unsigned32
-- if the revealNpeMibEntry definition is removed, the parser shows
-- Error: in C:\Temp\REVEAL-NPE-MIB.txt: line 20:
-- undefined symbol 'Unsigned32'