dragome/dragome-sdk

Fails to Generate bug

Closed this issue · 0 comments

#109

The code below fails to generate.

public class MyTest {

    public MyTest() {

        System.out.println("PASS  1111");

        try {
            boolean flag = true;
            Object obj1 = null;
            Object obj2 = null;
            while (flag) {
                if (obj1 == null)
                {
                    boolean mybool = false;
                }
                else if(obj2 == null)
                {
                    boolean test = false;
                }
            }
        } catch (Exception ex) {

        }

        System.out.println("PASS  2222");
    }
}

It deletes everything in the code block and generates nothing. Its something wrong with try catch and checking null. Removing try-catch generates but not with it.