posted 5 years ago
[quote=Norm Radder
Where did you put the statement that prints the contents of the array? It should be immediately before the statement (line 176) where the NPE happens
Oh, i put it in the wrong place. After putting it where you told me to i get the following output below if that helps.
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
java.lang.NullPointerException
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
at java.lang.String.contains(String.java:2133)
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
at vowelscounter.VowelsCounter.main(VowelsCounter.java:179)
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
an ID [6, <h1, ><h2, ><h3, ><h4, ><h5, ><h6, 5, ><img, ><video, ><audio, ><object, ><iframe, 4, ><a, ><title, ><meta, ><link, 4, ><!DOCTYPE , ><html , ><head , ><body, null]
>
ERROR: java.lang.NullPointerException
Didn't create a FileScanner to count the Tags
Welcome to BMC SEO Tag Analyser
1. Enter 1 to Load SEO Tag Definitions
2. Enter 2 to Display the SEO Tags Definitions
3. Enter 3 to Load and Analyse an HTML file
4. Enter 4 to Exit.
Option: