DiUS/java-faker — pull request #4 by crc83 (2012-11-27 12:25:42+00:00)
Title: NPE during InputStreamReader initialization

I used this code in my servlet

```java
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Faker faker = new Faker();
List persons = new ArrayList();
for (int i=1; i <=20; i++){
Person aPerson = new Employee();
aPerson.setName(faker.name());
aPerson.setEmail(faker.firstName()+"@email.com");
aPerson.setPhone(faker.phoneNumber());
persons.add(aPerson);
System.out.println(aPerson);
}
request.setAttribute("people", persons);

RequestDispatcher rd = request.getRequestDispatcher("pages/list_persons.jsp");
rd.forward(request, response);
}
```
And I got error on application server
```java
java.lang.NullPointerException
java.io.Reader.(Unknown Source)
java.io.InputStreamReader.(Unknown Source)
org.ho.yaml.YamlDecoder.(Unknown Source)
org.ho.yaml.YamlConfig.load(Unknown Source)
org.ho.yaml.Yaml.load(Unknown Source)
com.github.javafaker.Faker.(Faker.java:41)
com.github.javafaker.Faker.(Faker.java:35)
org.sbelei.ListOfPersons.doGet(ListOfPersons.java:33)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
```
In this pull request is solution that I use to read stream on any application server.

Signed-off-by: Sergiy Beley